Lbug C++ API
Loading...
Searching...
No Matches
lbug::common::UInt128_t Class Reference

#include <uint128_t.h>

Public Member Functions

template<>
bool tryCast (uint128_t input, int8_t &result)
template<>
bool tryCast (uint128_t input, int16_t &result)
template<>
bool tryCast (uint128_t input, int32_t &result)
template<>
bool tryCast (uint128_t input, int64_t &result)
template<>
bool tryCast (uint128_t input, uint8_t &result)
template<>
bool tryCast (uint128_t input, uint16_t &result)
template<>
bool tryCast (uint128_t input, uint32_t &result)
template<>
bool tryCast (uint128_t input, uint64_t &result)
template<>
bool tryCast (uint128_t input, int128_t &result)
template<>
bool tryCast (uint128_t input, float &result)
template<>
bool tryCast (uint128_t input, double &result)
template<>
bool tryCast (uint128_t input, long double &result)
template<>
bool tryCastTo (int8_t value, uint128_t &result)
template<>
bool tryCastTo (int16_t value, uint128_t &result)
template<>
bool tryCastTo (int32_t value, uint128_t &result)
template<>
bool tryCastTo (int64_t value, uint128_t &result)
template<>
bool tryCastTo (uint8_t value, uint128_t &result)
template<>
bool tryCastTo (uint16_t value, uint128_t &result)
template<>
bool tryCastTo (uint32_t value, uint128_t &result)
template<>
bool tryCastTo (uint64_t value, uint128_t &result)
template<>
bool tryCastTo (uint128_t value, uint128_t &result)
template<>
bool tryCastTo (float value, uint128_t &result)
template<>
bool tryCastTo (double value, uint128_t &result)
template<>
bool tryCastTo (long double value, uint128_t &result)

Static Public Member Functions

static std::string toString (uint128_t input)
template<class T>
static bool tryCast (uint128_t input, T &result)
template<class T>
static T cast (uint128_t input)
template<class T>
static bool tryCastTo (T value, uint128_t &result)
template<class T>
static uint128_t castTo (T value)
static void negateInPlace (uint128_t &input)
static uint128_t negate (uint128_t input)
static bool tryMultiply (uint128_t lhs, uint128_t rhs, uint128_t &result)
static uint128_t Add (uint128_t lhs, uint128_t rhs)
static uint128_t Sub (uint128_t lhs, uint128_t rhs)
static uint128_t Mul (uint128_t lhs, uint128_t rhs)
static uint128_t Div (uint128_t lhs, uint128_t rhs)
static uint128_t Mod (uint128_t lhs, uint128_t rhs)
static uint128_t Xor (uint128_t lhs, uint128_t rhs)
static uint128_t LeftShift (uint128_t lhs, int amount)
static uint128_t RightShift (uint128_t lhs, int amount)
static uint128_t BinaryAnd (uint128_t lhs, uint128_t rhs)
static uint128_t BinaryOr (uint128_t lhs, uint128_t rhs)
static uint128_t BinaryNot (uint128_t val)
static uint128_t divMod (uint128_t lhs, uint128_t rhs, uint128_t &remainder)
static uint128_t divModPositive (uint128_t lhs, uint64_t rhs, uint64_t &remainder)
static bool addInPlace (uint128_t &lhs, uint128_t rhs)
static bool subInPlace (uint128_t &lhs, uint128_t rhs)
static bool equals (uint128_t lhs, uint128_t rhs)
static bool notEquals (uint128_t lhs, uint128_t rhs)
static bool greaterThan (uint128_t lhs, uint128_t rhs)
static bool greaterThanOrEquals (uint128_t lhs, uint128_t rhs)
static bool lessThan (uint128_t lhs, uint128_t rhs)
static bool lessThanOrEquals (uint128_t lhs, uint128_t rhs)

Member Function Documentation

◆ Add()

uint128_t lbug::common::UInt128_t::Add ( uint128_t lhs,
uint128_t rhs )
static

◆ addInPlace()

bool lbug::common::UInt128_t::addInPlace ( uint128_t & lhs,
uint128_t rhs )
static

◆ BinaryAnd()

uint128_t lbug::common::UInt128_t::BinaryAnd ( uint128_t lhs,
uint128_t rhs )
static

◆ BinaryNot()

uint128_t lbug::common::UInt128_t::BinaryNot ( uint128_t val)
static

◆ BinaryOr()

uint128_t lbug::common::UInt128_t::BinaryOr ( uint128_t lhs,
uint128_t rhs )
static

◆ cast()

template<class T>
T lbug::common::UInt128_t::cast ( uint128_t input)
inlinestatic

◆ castTo()

template<class T>
uint128_t lbug::common::UInt128_t::castTo ( T value)
inlinestatic

◆ Div()

uint128_t lbug::common::UInt128_t::Div ( uint128_t lhs,
uint128_t rhs )
static

◆ divMod()

uint128_t lbug::common::UInt128_t::divMod ( uint128_t lhs,
uint128_t rhs,
uint128_t & remainder )
static

◆ divModPositive()

uint128_t lbug::common::UInt128_t::divModPositive ( uint128_t lhs,
uint64_t rhs,
uint64_t & remainder )
static

◆ equals()

bool lbug::common::UInt128_t::equals ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ greaterThan()

bool lbug::common::UInt128_t::greaterThan ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ greaterThanOrEquals()

bool lbug::common::UInt128_t::greaterThanOrEquals ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ LeftShift()

uint128_t lbug::common::UInt128_t::LeftShift ( uint128_t lhs,
int amount )
static

◆ lessThan()

bool lbug::common::UInt128_t::lessThan ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ lessThanOrEquals()

bool lbug::common::UInt128_t::lessThanOrEquals ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ Mod()

uint128_t lbug::common::UInt128_t::Mod ( uint128_t lhs,
uint128_t rhs )
static

◆ Mul()

uint128_t lbug::common::UInt128_t::Mul ( uint128_t lhs,
uint128_t rhs )
static

◆ negate()

uint128_t lbug::common::UInt128_t::negate ( uint128_t input)
inlinestatic

◆ negateInPlace()

void lbug::common::UInt128_t::negateInPlace ( uint128_t & input)
inlinestatic

◆ notEquals()

bool lbug::common::UInt128_t::notEquals ( uint128_t lhs,
uint128_t rhs )
inlinestatic

◆ RightShift()

uint128_t lbug::common::UInt128_t::RightShift ( uint128_t lhs,
int amount )
static

◆ Sub()

uint128_t lbug::common::UInt128_t::Sub ( uint128_t lhs,
uint128_t rhs )
static

◆ subInPlace()

bool lbug::common::UInt128_t::subInPlace ( uint128_t & lhs,
uint128_t rhs )
static

◆ toString()

std::string lbug::common::UInt128_t::toString ( uint128_t input)
static

◆ tryCast() [1/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
double & result )

◆ tryCast() [2/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
float & result )

◆ tryCast() [3/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
int128_t & result )

◆ tryCast() [4/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
int16_t & result )

◆ tryCast() [5/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
int32_t & result )

◆ tryCast() [6/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
int64_t & result )

◆ tryCast() [7/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
int8_t & result )

◆ tryCast() [8/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
long double & result )

◆ tryCast() [9/13]

template<class T>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
T & result )
static

◆ tryCast() [10/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
uint16_t & result )

◆ tryCast() [11/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
uint32_t & result )

◆ tryCast() [12/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
uint64_t & result )

◆ tryCast() [13/13]

template<>
bool lbug::common::UInt128_t::tryCast ( uint128_t input,
uint8_t & result )

◆ tryCastTo() [1/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( double value,
uint128_t & result )

◆ tryCastTo() [2/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( float value,
uint128_t & result )

◆ tryCastTo() [3/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( int16_t value,
uint128_t & result )

◆ tryCastTo() [4/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( int32_t value,
uint128_t & result )

◆ tryCastTo() [5/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( int64_t value,
uint128_t & result )

◆ tryCastTo() [6/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( int8_t value,
uint128_t & result )

◆ tryCastTo() [7/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( long double value,
uint128_t & result )

◆ tryCastTo() [8/13]

template<class T>
bool lbug::common::UInt128_t::tryCastTo ( T value,
uint128_t & result )
static

◆ tryCastTo() [9/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( uint128_t value,
uint128_t & result )

◆ tryCastTo() [10/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( uint16_t value,
uint128_t & result )

◆ tryCastTo() [11/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( uint32_t value,
uint128_t & result )

◆ tryCastTo() [12/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( uint64_t value,
uint128_t & result )

◆ tryCastTo() [13/13]

template<>
bool lbug::common::UInt128_t::tryCastTo ( uint8_t value,
uint128_t & result )

◆ tryMultiply()

bool lbug::common::UInt128_t::tryMultiply ( uint128_t lhs,
uint128_t rhs,
uint128_t & result )
static

◆ Xor()

uint128_t lbug::common::UInt128_t::Xor ( uint128_t lhs,
uint128_t rhs )
static

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