Click or drag to resize
mp_bitcnt_t Structure
Represents a count of bits.

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public struct mp_bitcnt_t

The mp_bitcnt_t type exposes the following members.

Constructors
  NameDescription
Public methodmp_bitcnt_t
Creates a new mp_bitcnt_t, and sets its value.
Top
Methods
  NameDescription
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(mp_bitcnt_t)
Returns a value indicating whether this instance is equal to a specified mp_bitcnt_t value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Gets the string representation of the mp_bitcnt_t.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Gets a value that indicates whether the two argument values are equal.
Public operatorStatic member(Int16 to mp_bitcnt_t)
Converts an Int16 value to an mp_bitcnt_t value.
Public operatorStatic member(Int32 to mp_bitcnt_t)
Converts an Int32 value to an mp_bitcnt_t value.
Public operatorStatic member(Int64 to mp_bitcnt_t)
Converts an Int64 value to a mp_bitcnt_t value.
Public operatorStatic member(SByte to mp_bitcnt_t)
Converts a Byte value to an mp_bitcnt_t value.
Public operatorStatic member(UInt64 to mp_bitcnt_t)
Converts a UInt64 value to an mp_bitcnt_t value.
Public operatorStatic member(mp_bitcnt_t to Byte)
Converts an mp_bitcnt_t value to a Byte value.
Public operatorStatic member(mp_bitcnt_t to SByte)
Converts an mp_bitcnt_t value to an SByte value.
Public operatorStatic member(mp_bitcnt_t to UInt16)
Converts an mp_bitcnt_t value to a UInt16 value.
Public operatorStatic member(mp_bitcnt_t to Int16)
Converts an mp_bitcnt_t value to an Int16 value.
Public operatorStatic member(mp_bitcnt_t to Int32)
Converts an mp_bitcnt_t value to an Int32 value.
Public operatorStatic member(Byte to mp_bitcnt_t)
Converts a Byte value to an mp_bitcnt_t value.
Public operatorStatic member(UInt16 to mp_bitcnt_t)
Converts a UInt16 value to an mp_bitcnt_t value.
Public operatorStatic member(UInt32 to mp_bitcnt_t)
Converts a UInt32 value to an mp_bitcnt_t value.
Public operatorStatic member(mp_bitcnt_t to UInt32)
Converts an mp_bitcnt_t value to a UInt32 value.
Public operatorStatic member(mp_bitcnt_t to UInt64)
Converts an mp_bitcnt_t value to a UInt64 value.
Public operatorStatic member(mp_bitcnt_t to Int64)
Converts an mp_bitcnt_t value to an Int64 value.
Public operatorStatic memberInequality
Gets a value that indicates whether the two argument values are different.
Top
Fields
  NameDescription
Public fieldValue
The mp_bitcnt_t value.
Top
Remarks

Counts of bits of a multi-precision number are represented in the C type mp_bitcnt_t. Currently this is always an unsigned long, but on some systems it will be an unsigned long long in the future.

In .NET, this is an unsigned 32-bit integer.

See Also