Binary |
public class BinaryMath
The BinaryMath type exposes the following members.
| Name | Description | |
|---|---|---|
| BinaryMath | Initializes a new instance of the BinaryMath class |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsNonzeroPowerOfTwo(Int32) | Returns if x is greater than 0 and is a power of two. | |
| IsNonzeroPowerOfTwo(Int64) | Returns if x is greater than 0 and is a power of two. | |
| IsNonzeroPowerOfTwo(UInt32) | Returns if x is greater than 0 and is a power of two. | |
| IsNonzeroPowerOfTwo(UInt64) | Returns if x is greater than 0 and is a power of two. | |
| IsParityOdd(Byte) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(Int16) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(Int32) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(Int64) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(SByte) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(UInt16) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(UInt32) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsParityOdd(UInt64) | Determines whether x contains an odd number of set bits (1 bits). | |
| IsPowerOfTwoOrZero(Int32) | Returns if the number is a power of two or is zero. | |
| IsPowerOfTwoOrZero(Int64) | Returns if the number is a power of two or is zero. | |
| IsPowerOfTwoOrZero(UInt32) | Returns if the number is a power of two or is zero. | |
| IsPowerOfTwoOrZero(UInt64) | Returns if the number is a power of two or is zero. | |
| Ld(Int32) | Returns k such that 2^k <= x < 2^(k+1). | |
| Ld(Int64) | Returns k such that 2^k <= x < 2^(k+1). | |
| Ld(UInt32) | Returns k such that 2^k <= x < 2^(k+1). | |
| Ld(UInt64) | Returns k such that 2^k <= x < 2^(k+1). | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| NextPowerOfTwoGreaterOrEqualThan(Int32) | Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x. | |
| NextPowerOfTwoGreaterOrEqualThan(Int64) | Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x. | |
| NextPowerOfTwoGreaterOrEqualThan(UInt32) | Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x. | |
| NextPowerOfTwoGreaterOrEqualThan(UInt64) | Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |