NBit Bit Manipulation Library

BitMathExtensions Methods

The methods of the BitMathExtensions class are listed below. For a complete list of BitMathExtensions class members, see the BitMathExtensions Members topic.

Public Static (Shared) Methods

CountBits Counts the number of one bits in a value.
CountTrailingZeros Counts the number of trailing zeros in a value.
IsOddParity Computes the parity of a value.
IsPowerOf2 Checks if a value is a power of two.
ReverseBitsOverloaded. Reverses the bits of a value.
RoundUpToPowerOf2 Rounds a value up to the nearest power of two.

Public Instance Methods

Equals (inherited from Object)
GetHashCode (inherited from Object)
GetType (inherited from Object)
ToString (inherited from Object)

Protected Instance Methods

Finalize (inherited from Object)
MemberwiseClone (inherited from Object)

See Also

BitMathExtensions Class | NBit Namespace