System.Numerics.BitOperations
Returns the number of leading zero bits in the specified value.
Returns the number of leading zero bits in the specified 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.
Returns the population count (number of bits set) of a mask.
Returns the population count (number of bits set) of a mask.
Rotates the specified value left by the specified number of bits.
Rotates the specified value left by the specified number of bits.
Rotates the specified value right by the specified number of bits.
Rotates the specified value right by the specified number of bits.
Count the number of trailing zero bits in an integer value.