Click or drag to resize

BinaryMath Class

BinaryMath provides static methods for "Bit" mathematics.
Inheritance Hierarchy
SystemObject
  Altaxo.CalcBinaryMath

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class BinaryMath

The BinaryMath type exposes the following members.

Constructors
 NameDescription
Public methodBinaryMathInitializes a new instance of the BinaryMath class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsNonzeroPowerOfTwo(Int32) Return true if x > 0 and x is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(Int64) Return true if x > 0 and x is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(UInt32) Return true if x > 0 and x is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(UInt64) Return true if x > 0 and x is a power of two.
Public methodStatic memberIsParityOdd(Byte) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(Int16) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(Int32) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(Int64) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(SByte) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(UInt16) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(UInt32) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsParityOdd(UInt64) Determines, if x contains an odd number of '1' bits.
Public methodStatic memberIsPowerOfTwoOrZero(Int32) Returns true if number is a power of two or is zero.
Public methodStatic memberIsPowerOfTwoOrZero(Int64) Return true if number is 0 (!) or a power of two
Public methodStatic memberIsPowerOfTwoOrZero(UInt32) Returns true if number is a power of two or is zero.
Public methodStatic memberIsPowerOfTwoOrZero(UInt64) Returns true if number is a power of two or is zero.
Public methodStatic memberLd(Int32) Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned.
Public methodStatic memberLd(Int64) Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned.
Public methodStatic memberLd(UInt32) Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned.
Public methodStatic memberLd(UInt64) Returns k so that 2^k <= x < 2^(k+1). If x==0 then 0 is returned.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(Int32) Return x if x is is a power of two, else return the smallest number >x, which is a power of two.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(Int64) Return x if x is is a power of two, else return the smallest number >x, which is a power of two.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(UInt32) Return x if x is is a power of two, else return the smallest number >x, which is a power of two.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(UInt64) Return x if x is is a power of two, else return the smallest number >x, which is a power of two.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also