8#ifndef INCLUDED_BDLDFP_UINT128
9#define INCLUDED_BDLDFP_UINT128
161#include <bsls_types.h>
184 #ifdef BSLS_PLATFORM_IS_BIG_ENDIAN
187 #elif defined(BSLS_PLATFORM_IS_LITTLE_ENDIAN)
191 #error Only big or little endian is supported.
318 d_low = initialValue;
325 d_high = initialHigh;
333 d_high |= rhs.d_high;
342 d_high &= rhs.d_high;
351 d_high ^= rhs.d_high;
366 d_low |= d_high << (64 - rhs);
370 d_low = d_high >> (rhs - 64);
386 d_high |= d_low >> (64 - rhs);
390 d_high = d_low << (rhs - 64);
Definition bdldfp_uint128.h:175
void setLow(bsls::Types::Uint64 value)
Set the low order bits of this integer to the specified value.
Definition bdldfp_uint128.h:404
Uint128 & operator<<=(int rhs)
Definition bdldfp_uint128.h:378
void setHigh(bsls::Types::Uint64 value)
Set the high order bits of this integer to the specified value.
Definition bdldfp_uint128.h:398
Uint128 & operator|=(const Uint128 &rhs)
Definition bdldfp_uint128.h:331
Uint128()
Create an Uint128 object having the value 0
Definition bdldfp_uint128.h:308
Uint128 & operator^=(const Uint128 &rhs)
Definition bdldfp_uint128.h:349
Uint128 & operator>>=(int rhs)
Definition bdldfp_uint128.h:358
Uint128 & operator=(const Uint128 &rhs)=default
bsls::Types::Uint64 high() const
Return the high order bits of this integer.
Definition bdldfp_uint128.h:411
bsls::Types::Uint64 low() const
Return the low order bits of this integer.
Definition bdldfp_uint128.h:417
Uint128 & operator&=(const Uint128 &rhs)
Definition bdldfp_uint128.h:340
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdldfp_decimal.h:712
bsl::basic_istream< CHARTYPE, TRAITS > & operator>>(bsl::basic_istream< CHARTYPE, TRAITS > &stream, Decimal32 &object)
bsl::basic_ostream< CHARTYPE, TRAITS > & operator<<(bsl::basic_ostream< CHARTYPE, TRAITS > &stream, Decimal32 object)
bool operator!=(Decimal32 lhs, Decimal32 rhs)
Uint128 operator~(Uint128 value)
Uint128 operator|(Uint128 lhs, const Uint128 &rhs)
Uint128 operator^(Uint128 lhs, const Uint128 &rhs)
Uint128 operator&(Uint128 lhs, const Uint128 &rhs)
bool operator==(Decimal32 lhs, Decimal32 rhs)
unsigned long long Uint64
Definition bsls_types.h:137