Quick Links: |
#include <bdldfp_uint128.h>
Public Member Functions | |
Uint128 () | |
Uint128 (bsls::Types::Uint64 initialValue) | |
Uint128 (bsls::Types::Uint64 initialHigh, bsls::Types::Uint64 initialLow) | |
~Uint128 () | |
Uint128 & | operator= (const Uint128 &rhs) |
Uint128 & | operator|= (const Uint128 &rhs) |
Uint128 & | operator&= (const Uint128 &rhs) |
Uint128 & | operator^= (const Uint128 &rhs) |
Uint128 & | operator>>= (int rhs) |
Uint128 & | operator<<= (int rhs) |
void | setHigh (bsls::Types::Uint64 value) |
void | setLow (bsls::Types::Uint64 value) |
bsls::Types::Uint64 | high () const |
bsls::Types::Uint64 | low () const |
This value-semantic type represents a 128-bit integer, with host machine byte order.
bdldfp::Uint128::Uint128 | ( | ) |
Create an Uint128 object having the value 0
bdldfp::Uint128::Uint128 | ( | bsls::Types::Uint64 | initialValue | ) |
IMPLICIT: Create an Uint128
object having the 128-bit integer bit pattern of the value of the specified initialValue
.
bdldfp::Uint128::Uint128 | ( | bsls::Types::Uint64 | initialHigh, | |
bsls::Types::Uint64 | initialLow | |||
) |
Create an Uint128
object having the 128-bit pattern specified by initialHigh..initialLow
bdldfp::Uint128::~Uint128 | ( | ) |
Destroy this object.
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
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.
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.
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.
Uint128& bdldfp::Uint128::operator>>= | ( | int | rhs | ) |
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
.
Uint128& bdldfp::Uint128::operator<<= | ( | int | rhs | ) |
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
.
void bdldfp::Uint128::setHigh | ( | bsls::Types::Uint64 | value | ) |
Set the high order bits of this integer to the specified value
.
void bdldfp::Uint128::setLow | ( | bsls::Types::Uint64 | value | ) |
Set the low order bits of this integer to the specified value
.
bsls::Types::Uint64 bdldfp::Uint128::high | ( | ) | const |
Return the high order bits of this integer.
bsls::Types::Uint64 bdldfp::Uint128::low | ( | ) | const |
Return the low order bits of this integer.