BloombergLP::bdldfp::Uint128

This value-semantic type represents a 128-bit integer, with host machine byte order.

Synopsis

Declared in <bdldfp_uint128.h>

class Uint128;

Member Functions

NameDescription
Uint128 [constructor]Constructors
high Return the high order bits of this integer.
low Return the low order bits of this integer.
operator&= Set the value of this object to the value of a the bitwise and between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.
operator<<= Set the value of this object to the value of a bitwise left shift of this 128 bit integer shifted by the specified rhs value, and return a reference providing mofifiable access to this object. The behavior is undefined unless 0 <= rhs < 128.
operator>>= Set the value of this object to the value of a bitwise right shift of this 128 bit integer shifted by the specified rhs value, and return a reference providing mofifiable access to this object. The behavior is undefined unless 0 <= rhs < 128.
operator^= Set the value of this object to the value of a the bitwise xor between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.
operator|= Set the value of this object to the value of a the bitwise or between this 128 bit integer and the specified rhs value, and return a reference providing mofifiable access to this object.
setHigh Set the high order bits of this integer to the specified value.
setLow Set the low order bits of this integer to the specified value.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and the specified rhs objects do not have the same value, and false otherwise. Two Uint128 objects do not have the same value if either of their low and high attributes are not the same.
operator&Return an Uint128 object having the value of a the bitwise and between the specified lhs and the specified rhs value.
operator<<Return an Uint128 value equal to the value of a bitwise left shift of the specified lhs 128-bit integer shifted by the specified rhs value. The behavior is undefined unless 0 <= rhs < 128.
operator==Return true if the specified lhs and the specified rhs objects have the same value, and false otherwise. Two Uint128 objects have the same value if both of their low and high attributes are the same.
operator>>Return an Uint128 value equal to the value of a bitwise right shift of the specified lhs 128-bit integer shifted by the specified rhs value. The behavior is undefined unless 0 <= rhs < 128.
operator^Return an Uint128 object having the value of a the bitwise xor between the specified lhs and the specified rhs value.
operator|Return an Uint128 object having the value of a the bitwise or between the specified lhs and the specified rhs value.
operator~Return an Uint128 value equal to the bitwise ones compliment of the specified value.