Base Framework
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
UInt128 Class Reference

#include <base/UInt128.h>

Inherits Object.

Public Types

typedef uint64 WORD
 
typedef int64 SIGNED_WORD
 

Public Member Functions

 UInt128 (uint128 _value) noexcept
 
 UInt128 (int128 _value) noexcept
 
 UInt128 (uint64 low) noexcept
 
 UInt128 (uint64 low, uint64 high) noexcept
 
 UInt128 (int64 low) noexcept
 
 UInt128 (uint32 low) noexcept
 
 UInt128 (int32 low) noexcept
 
 UInt128 (uint16 low) noexcept
 
 UInt128 (int16 low) noexcept
 
 UInt128 (uint8 low) noexcept
 
 UInt128 (int8 low) noexcept
 
 UInt128 (const UInt128 &copy) noexcept
 
UInt128operator= (const UInt128 &assign) noexcept
 
UInt128operator~ () noexcept
 
bool operator== (const UInt128 &compare) const noexcept
 
bool operator!= (const UInt128 &compare) const noexcept
 
bool operator< (const UInt128 &compare) const noexcept
 
bool operator<= (const UInt128 &compare) const noexcept
 
bool operator> (const UInt128 &compare) const noexcept
 
bool operator>= (const UInt128 compare) const noexcept
 
 operator uint128 () const noexcept
 
 operator uint64 () const noexcept
 
 operator uint32 () const noexcept
 
 operator uint16 () const noexcept
 
 operator uint8 () const noexcept
 
void operator>>= (unsigned int shift) noexcept
 
void operator<<= (unsigned int shift) noexcept
 
UInt128operator^= (const UInt128 a) noexcept
 
UInt128operator&= (const UInt128 a) noexcept
 
UInt128operator|= (const UInt128 a) noexcept
 
UInt128operator++ () noexcept
 
UInt128 operator++ (int) const noexcept
 
UInt128operator-- () noexcept
 
UInt128 operator- () const noexcept
 
UInt128 operator-- (int) const noexcept
 
UInt128operator-= (const UInt128 &_a) noexcept
 
UInt128operator+= (const UInt128 &_a) noexcept
 
UInt128operator*= (const UInt128 &_a) noexcept
 
UInt128operator/= (const UInt128 &a) noexcept
 
UInt128 operator! () const noexcept
 
 operator bool () const noexcept
 
bool isBitSet (unsigned int bit) const noexcept
 
bool isLowBitSet () const noexcept
 
bool isHighBitSet () const noexcept
 

Public Attributes

uint128 value
 

Static Public Attributes

static const UInt128 ZERO
 
static const UInt128 ONE
 
static const UInt128 MAXIMUM
 
static constexpr unsigned int BITS = 128
 
static constexpr unsigned int WORD_BITS = 64
 
static constexpr WORD WORD_MAXIMUM = static_cast<WORD>(-1)
 

Detailed Description

128 bit unsigned integer.