Photon Fusion
2.1.3
Fallback implementations for Unity builds that cannot use the .NET versions. More...
Static Public Member Functions | |
| static bool | IsPow2 (UInt32 value) |
| Evaluate whether a given integral value is a power of 2. | |
| static bool | IsPow2 (UInt64 value) |
| Evaluate whether a given integral value is a power of 2. | |
| static bool | IsPow2 (UIntPtr value) |
| Evaluate whether a given integral value is a power of 2. | |
| static Int32 | LeadingZeroCount (UInt32 value) |
| Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT. | |
| static Int32 | LeadingZeroCount (UInt64 value) |
| Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT. | |
| static Int32 | Log2 (UInt32 value) |
| Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined. | |
| static Int32 | Log2 (UInt64 value) |
| Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined. | |
| static Int32 | Log2 (UIntPtr value) |
| Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined. | |
| static Int32 | PopCount (UInt32 value) |
| Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT. | |
| static Int32 | PopCount (UInt64 value) |
| Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT. | |
| static Int32 | PopCount (UIntPtr value) |
| Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT. | |
| static UInt32 | RotateLeft (UInt32 value, Int32 offset) |
| Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL. | |
| static UInt64 | RotateLeft (UInt64 value, Int32 offset) |
| Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL. | |
| static UIntPtr | RotateLeft (UIntPtr value, Int32 offset) |
| Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL. | |
| static UInt32 | RotateRight (UInt32 value, Int32 offset) |
| Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | |
| static UInt64 | RotateRight (UInt64 value, Int32 offset) |
| Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | |
| static UIntPtr | RotateRight (UIntPtr value, Int32 offset) |
| Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR. | |
| static UInt32 | RoundUpToPowerOf2 (UInt32 value) |
| Round the given integral value up to a power of 2. | |
| static UInt64 | RoundUpToPowerOf2 (UInt64 value) |
| Round the given integral value up to a power of 2. | |
| static UIntPtr | RoundUpToPowerOf2 (UIntPtr value) |
| Round the given integral value up to a power of 2. | |
| static Int32 | TrailingZeroCount (Int32 value) |
| Count the number of trailing zero bits in an integer value. Similar in behavior to the x86 instruction TZCNT. | |
| static Int32 | TrailingZeroCount (Int64 value) |
| Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT. | |
| static Int32 | TrailingZeroCount (IntPtr value) |
| Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT. | |
| static Int32 | TrailingZeroCount (UInt32 value) |
| Count the number of trailing zero bits in an integer value. Similar in behavior to the x86 instruction TZCNT. | |
| static Int32 | TrailingZeroCount (UInt64 value) |
| Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT. | |
| static Int32 | TrailingZeroCount (UIntPtr value) |
| Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT. | |
Fallback implementations for Unity builds that cannot use the .NET versions.
|
static |
Evaluate whether a given integral value is a power of 2.
| value | The value. |
|
static |
Evaluate whether a given integral value is a power of 2.
| value | The value. |
|
static |
Evaluate whether a given integral value is a power of 2.
| value | The value. |
|
static |
Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.
| value | The value. |
|
static |
Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.
| value | The value. |
|
static |
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
| value | The value. |
|
static |
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
| value | The value. |
|
static |
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
| value | The value. |
|
static |
Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT.
| value | The value. |
|
static |
Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT.
| value | The value. |
|
static |
Returns the population count (number of bits set) of a mask. Similar in behavior to the x86 instruction POPCNT.
| value | The value. |
|
static |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32. |
|
static |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64. |
|
static |
Rotates the specified value left by the specified number of bits. Similar in behavior to the x86 instruction ROL.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32 on a 32-bit process, and any value outside the range [0..63] is treated as congruent mod 64 on a 64-bit process. |
|
static |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32. |
|
static |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..63] is treated as congruent mod 64. |
|
static |
Rotates the specified value right by the specified number of bits. Similar in behavior to the x86 instruction ROR.
| value | The value to rotate. |
| offset | The number of bits to rotate by. Any value outside the range [0..31] is treated as congruent mod 32 on a 32-bit process, and any value outside the range [0..63] is treated as congruent mod 64 on a 64-bit process. |
|
static |
Round the given integral value up to a power of 2.
| value | The value. |
|
static |
Round the given integral value up to a power of 2.
| value | The value. |
|
static |
Round the given integral value up to a power of 2.
| value | The value. |
|
static |
Count the number of trailing zero bits in an integer value. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |
|
static |
Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |
|
static |
Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |
|
static |
Count the number of trailing zero bits in an integer value. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |
|
static |
Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |
|
static |
Count the number of trailing zero bits in a mask. Similar in behavior to the x86 instruction TZCNT.
| value | The value. |