openMSX
Classes | Functions
uint128.hh File Reference
#include <cstdint>
#include <utility>
Include dependency graph for uint128.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  uint128
 Unsigned 128-bit integer type. More...
 

Functions

constexpr uint64_t low64 (const uint128 &a)
 
constexpr uint64_t high64 (const uint128 &a)
 
constexpr uint128 operator+ (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator- (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator* (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator/ (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator% (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator>> (const uint128 &a, unsigned n)
 
constexpr uint128 operator<< (const uint128 &a, unsigned n)
 
constexpr uint128 operator & (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator| (const uint128 &a, const uint128 &b)
 
constexpr uint128 operator^ (const uint128 &a, const uint128 &b)
 
constexpr bool operator< (const uint128 &a, const uint128 &b)
 
constexpr bool operator> (const uint128 &a, const uint128 &b)
 
constexpr bool operator<= (const uint128 &a, const uint128 &b)
 
constexpr bool operator>= (const uint128 &a, const uint128 &b)
 
constexpr bool operator== (const uint128 &a, const uint128 &b)
 
constexpr bool operator!= (const uint128 &a, const uint128 &b)
 
constexpr bool operator && (const uint128 &a, const uint128 &b)
 
constexpr bool operator|| (const uint128 &a, const uint128 &b)
 

Function Documentation

◆ high64()

constexpr uint64_t high64 ( const uint128 a)

Definition at line 177 of file uint128.hh.

Referenced by DivModByConstPrivate::getAlgorithm().

◆ low64()

constexpr uint64_t low64 ( const uint128 a)

◆ operator &()

constexpr uint128 operator& ( const uint128 a,
const uint128 b 
)
inline

Definition at line 212 of file uint128.hh.

◆ operator &&()

constexpr bool operator&& ( const uint128 a,
const uint128 b 
)
inline

Definition at line 250 of file uint128.hh.

◆ operator!=()

constexpr bool operator!= ( const uint128 a,
const uint128 b 
)
inline

Definition at line 245 of file uint128.hh.

◆ operator%()

constexpr uint128 operator% ( const uint128 a,
const uint128 b 
)
inline

Definition at line 198 of file uint128.hh.

◆ operator*()

constexpr uint128 operator* ( const uint128 a,
const uint128 b 
)
inline

Definition at line 190 of file uint128.hh.

◆ operator+()

constexpr uint128 operator+ ( const uint128 a,
const uint128 b 
)
inline

Definition at line 182 of file uint128.hh.

◆ operator-()

constexpr uint128 operator- ( const uint128 a,
const uint128 b 
)
inline

Definition at line 186 of file uint128.hh.

◆ operator/()

constexpr uint128 operator/ ( const uint128 a,
const uint128 b 
)
inline

Definition at line 194 of file uint128.hh.

◆ operator<()

constexpr bool operator< ( const uint128 a,
const uint128 b 
)
inline

Definition at line 225 of file uint128.hh.

References uint128::high64, and uint128::low64.

◆ operator<<()

constexpr uint128 operator<< ( const uint128 a,
unsigned  n 
)
inline

Definition at line 207 of file uint128.hh.

◆ operator<=()

constexpr bool operator<= ( const uint128 a,
const uint128 b 
)
inline

Definition at line 233 of file uint128.hh.

◆ operator==()

constexpr bool operator== ( const uint128 a,
const uint128 b 
)
inline

◆ operator>()

constexpr bool operator> ( const uint128 a,
const uint128 b 
)
inline

Definition at line 229 of file uint128.hh.

◆ operator>=()

constexpr bool operator>= ( const uint128 a,
const uint128 b 
)
inline

Definition at line 237 of file uint128.hh.

◆ operator>>()

constexpr uint128 operator>> ( const uint128 a,
unsigned  n 
)
inline

Definition at line 203 of file uint128.hh.

◆ operator^()

constexpr uint128 operator^ ( const uint128 a,
const uint128 b 
)
inline

Definition at line 220 of file uint128.hh.

◆ operator|()

constexpr uint128 operator| ( const uint128 a,
const uint128 b 
)
inline

Definition at line 216 of file uint128.hh.

◆ operator||()

constexpr bool operator|| ( const uint128 a,
const uint128 b 
)
inline

Definition at line 254 of file uint128.hh.