openMSX
Public Member Functions | Friends | List of all members
uint128 Class Reference

Unsigned 128-bit integer type. More...

#include <uint128.hh>

Public Member Functions

 uint128 (const uint128 &a)
 
 uint128 (uint64_t a)
 
bool operator! () const
 
uint128 operator~ () const
 
uint128 operator- () const
 
uint128operator++ ()
 
uint128operator-- ()
 
uint128 operator++ (int)
 
uint128 operator-- (int)
 
uint128operator+= (const uint128 &b)
 
uint128operator-= (const uint128 &b)
 
uint128operator>>= (unsigned n)
 
uint128operator<<= (unsigned n)
 
uint128operator|= (const uint128 &b)
 
uint128operator&= (const uint128 &b)
 
uint128operator^= (const uint128 &b)
 
uint128operator/= (const uint128 &b)
 
uint128operator%= (const uint128 &b)
 
uint128operator*= (const uint128 &b)
 

Friends

bool operator< (const uint128 &, const uint128 &)
 
bool operator== (const uint128 &, const uint128 &)
 
bool operator|| (const uint128 &, const uint128 &)
 
bool operator&& (const uint128 &, const uint128 &)
 
uint64_t toUint64 (const uint128 &)
 

Detailed Description

Unsigned 128-bit integer type.

Very simple implementation, not optimized for speed.

Loosely based on the 128-bit utility classes written by Jan Ringos, http://Tringi.Mx-3.cz

Definition at line 21 of file uint128.hh.

Constructor & Destructor Documentation

uint128::uint128 ( const uint128 a)
inline

Definition at line 24 of file uint128.hh.

uint128::uint128 ( uint64_t  a)
inline

Definition at line 25 of file uint128.hh.

Member Function Documentation

bool uint128::operator! ( ) const
inline

Definition at line 27 of file uint128.hh.

uint128& uint128::operator%= ( const uint128 b)
inline

Definition at line 130 of file uint128.hh.

uint128& uint128::operator&= ( const uint128 b)
inline

Definition at line 111 of file uint128.hh.

uint128 & uint128::operator*= ( const uint128 b)

Definition at line 9 of file uint128.cc.

uint128& uint128::operator++ ( )
inline

Definition at line 43 of file uint128.hh.

uint128 uint128::operator++ ( int  )
inline

Definition at line 55 of file uint128.hh.

uint128& uint128::operator+= ( const uint128 b)
inline

Definition at line 68 of file uint128.hh.

uint128 uint128::operator- ( ) const
inline

Definition at line 36 of file uint128.hh.

uint128& uint128::operator-- ( )
inline

Definition at line 49 of file uint128.hh.

uint128 uint128::operator-- ( int  )
inline

Definition at line 61 of file uint128.hh.

uint128& uint128::operator-= ( const uint128 b)
inline

Definition at line 75 of file uint128.hh.

uint128& uint128::operator/= ( const uint128 b)
inline

Definition at line 124 of file uint128.hh.

uint128& uint128::operator<<= ( unsigned  n)
inline

Definition at line 92 of file uint128.hh.

uint128& uint128::operator>>= ( unsigned  n)
inline

Definition at line 80 of file uint128.hh.

uint128& uint128::operator^= ( const uint128 b)
inline

Definition at line 117 of file uint128.hh.

uint128& uint128::operator|= ( const uint128 b)
inline

Definition at line 105 of file uint128.hh.

uint128 uint128::operator~ ( ) const
inline

Definition at line 32 of file uint128.hh.

Friends And Related Function Documentation

bool operator&& ( const uint128 a,
const uint128 b 
)
friend

Definition at line 224 of file uint128.hh.

bool operator< ( const uint128 a,
const uint128 b 
)
friend

Definition at line 199 of file uint128.hh.

bool operator== ( const uint128 a,
const uint128 b 
)
friend

Definition at line 215 of file uint128.hh.

bool operator|| ( const uint128 a,
const uint128 b 
)
friend

Definition at line 228 of file uint128.hh.

uint64_t toUint64 ( const uint128 a)
friend

Definition at line 233 of file uint128.hh.


The documentation for this class was generated from the following files: