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) | Return true if x > 0 and x is a power of two. | |
IsNonzeroPowerOfTwo(Int64) | Return true if x > 0 and x is a power of two. | |
IsNonzeroPowerOfTwo(UInt32) | Return true if x > 0 and x is a power of two. | |
IsNonzeroPowerOfTwo(UInt64) | Return true if x > 0 and x is a power of two. | |
IsParityOdd(Byte) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(Int16) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(Int32) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(Int64) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(SByte) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(UInt16) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(UInt32) | Determines, if x contains an odd number of '1' bits. | |
IsParityOdd(UInt64) | Determines, if x contains an odd number of '1' bits. | |
IsPowerOfTwoOrZero(Int32) | Returns true if number is a power of two or is zero. | |
IsPowerOfTwoOrZero(Int64) | Return true if number is 0 (!) or a power of two | |
IsPowerOfTwoOrZero(UInt32) | Returns true if number is a power of two or is zero. | |
IsPowerOfTwoOrZero(UInt64) | Returns true if number is a power of two or is zero. | |
Ld(Int32) | Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned. | |
Ld(Int64) | Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned. | |
Ld(UInt32) | Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned. | |
Ld(UInt64) | Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
NextPowerOfTwoGreaterOrEqualThan(Int32) | Return x if x is is a power of two, else return the smallest number >x, which is a power of two. | |
NextPowerOfTwoGreaterOrEqualThan(Int64) | Return x if x is is a power of two, else return the smallest number >x, which is a power of two. | |
NextPowerOfTwoGreaterOrEqualThan(UInt32) | Return x if x is is a power of two, else return the smallest number >x, which is a power of two. | |
NextPowerOfTwoGreaterOrEqualThan(UInt64) | Return x if x is is a power of two, else return the smallest number >x, which is a power of two. | |
ToString | Returns a string that represents the current object. (Inherited from Object) |