BitMathRoundDownToNearestPowerOfTwo Method

Overload List

RoundDownToNearestPowerOfTwo(UInt32) Rounds a number down to the nearest power of 2. If the value is a power of two, the same value is returned. If value is zero, 1 is returned.
RoundDownToNearestPowerOfTwo(UInt64) Rounds a number down to the nearest power of 2. If the value is a power of two, the same value is returned. If value is zero, one is returned.

See Also