Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::uint128 Class Reference

Limited functionality 128-bit unsigned integer. More...

Public Member Functions

 uint128 (const uint64 &lo)
 
 uint128 (const uint64 &hi, const uint64 &lo)
 
uint128 operator & (const uint128 &x)
 
uint128operator &= (const uint128 &x)
 
uint128operator*= (const uint128 &x)
 
uint128operator+= (const uint128 &x)
 
uint128operator<<= (const int x)
 
bool operator== (const uint128 &x)
 
uint128operator>>= (const int x)
 
uint128operator^= (const uint128 &x)
 
uint128operator|= (const uint128 &x)
 

Public Attributes

G3D::uint64 hi
 
G3D::uint64 lo
 

Detailed Description

Limited functionality 128-bit unsigned integer.

This is primarily to support FNV hashing and other cryptography applications. See the GMP library for high-precision C++ math support.

Constructor & Destructor Documentation

◆ uint128() [1/2]

G3D::uint128::uint128 ( const uint64 lo)

◆ uint128() [2/2]

G3D::uint128::uint128 ( const uint64 hi,
const uint64 lo 
)

Member Function Documentation

◆ operator &()

uint128 G3D::uint128::operator& ( const uint128 x)

◆ operator &=()

uint128& G3D::uint128::operator&= ( const uint128 x)

◆ operator*=()

uint128& G3D::uint128::operator*= ( const uint128 x)

◆ operator+=()

uint128& G3D::uint128::operator+= ( const uint128 x)

◆ operator<<=()

uint128& G3D::uint128::operator<<= ( const int  x)

◆ operator==()

bool G3D::uint128::operator== ( const uint128 x)

◆ operator>>=()

uint128& G3D::uint128::operator>>= ( const int  x)

◆ operator^=()

uint128& G3D::uint128::operator^= ( const uint128 x)

◆ operator|=()

uint128& G3D::uint128::operator|= ( const uint128 x)

Member Data Documentation

◆ hi

G3D::uint64 G3D::uint128::hi

◆ lo

G3D::uint64 G3D::uint128::lo

documentation generated on Wed Nov 24 2021 08:02:01 using doxygen 1.8.15