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.3448.0 (4.8.3448.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) Returns if x is greater than 0 and is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(Int64) Returns if x is greater than 0 and is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(UInt32) Returns if x is greater than 0 and is a power of two.
Public methodStatic memberIsNonzeroPowerOfTwo(UInt64) Returns if x is greater than 0 and is a power of two.
Public methodStatic memberIsParityOdd(Byte) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(Int16) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(Int32) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(Int64) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(SByte) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(UInt16) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(UInt32) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsParityOdd(UInt64) Determines whether x contains an odd number of set bits (1 bits).
Public methodStatic memberIsPowerOfTwoOrZero(Int32) Returns if the number is a power of two or is zero.
Public methodStatic memberIsPowerOfTwoOrZero(Int64) Returns if the number is a power of two or is zero.
Public methodStatic memberIsPowerOfTwoOrZero(UInt32) Returns if the number is a power of two or is zero.
Public methodStatic memberIsPowerOfTwoOrZero(UInt64) Returns if the number is a power of two or is zero.
Public methodStatic memberLd(Int32) Returns k such that 2^k <= x < 2^(k+1).
Public methodStatic memberLd(Int64) Returns k such that 2^k <= x < 2^(k+1).
Public methodStatic memberLd(UInt32) Returns k such that 2^k <= x < 2^(k+1).
Public methodStatic memberLd(UInt64) Returns k such that 2^k <= x < 2^(k+1).
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(Int32) Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(Int64) Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(UInt32) Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x.
Public methodStatic memberNextPowerOfTwoGreaterOrEqualThan(UInt64) Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also