57 inline uint128 (
const int & a)
throw () :
lo (a),
hi (0ull) {};
58 inline uint128 (
const unsigned int & a)
throw () :
lo (a),
hi (0ull) {};
59 inline uint128 (
const int64u & a)
throw () :
lo (a),
hi (0ull) {};
61 uint128 (
const float a)
throw ();
62 uint128 (
const double & a)
throw ();
63 uint128 (
const long double & a)
throw ();
65 uint128 (
const char * sz)
throw ();
72 uint128 (
const int64u & a,
const int64u & b)
throw ()
79 uint128 operator - () const throw ();
80 uint128 operator ~ () const throw ();
90 uint128 & operator >>= (
unsigned int n) throw ();
91 uint128 & operator <<= (
unsigned int n) throw ();
98 inline const
uint128 & operator + () const throw () {
return *
this; }
102 return *
this += (-b);
106 *
this = this->
div (b, dummy);
110 this->
div (b, *
this);
116 return (
unsigned int) this->
lo; }
118 return (int64u) this->
lo; }
119 const char *
toString (
unsigned int radix = 10)
const throw ();
120 float toFloat () const throw ();
128 bool bit (
unsigned int n) const throw ();
129 void bit (
unsigned int n,
bool val) throw ();
131 #if defined(__GNUC__) && !defined(__ANDROID_API__) 132 __attribute__ ((__aligned__ (16), __packed__))
int64u hi
Definition: int128u.h:43
bool operator!=(const int128 &a, const int128 &b)
Definition: int128s.h:184
int128 operator&(const int128 &a, const int128 &b)
Definition: int128s.h:171
int128 operator*(const int128 &a, const int128 &b)
Definition: int128s.h:159
int128 operator%(const int128 &a, const int128 &b)
Definition: int128s.h:163
unsigned int toUint() const
Definition: int128u.h:115
uint128(const unsigned int &a)
Definition: int128u.h:58
long double toLongDouble() const
int128 operator/(const int128 &a, const int128 &b)
Definition: int128s.h:161
friend bool operator&&(const uint128 &, const uint128 &)
uint128 & operator%=(const uint128 &b)
Definition: int128u.h:109
friend bool operator<(const uint128 &, const uint128 &)
bool operator>(const int128 &a, const int128 &b)
Definition: int128s.h:178
uint128 & operator-=(const uint128 &b)
Definition: int128u.h:101
const char * toString(unsigned int radix=10) const
const uint128 & operator+() const
Definition: int128u.h:98
Definition: BitStream.h:23
uint128 __uint128
Definition: int128u.h:181
uint128 int128u
Definition: int128u.h:183
bool operator<=(const int128 &a, const int128 &b)
Definition: int128s.h:180
bool bit(unsigned int n) const
uint128(const int64u &a)
Definition: int128u.h:59
int64u toUint64() const
Definition: int128u.h:117
int128 operator>>(const int128 &a, unsigned int n)
Definition: int128s.h:166
uint128 operator-() const
uint128 div(const uint128 &, uint128 &) const
int128 operator|(const int128 &a, const int128 &b)
Definition: int128s.h:173
uint128 & operator/=(const uint128 &b)
Definition: int128u.h:104
uint128()
Definition: int128u.h:54
uint128(const int &a)
Definition: int128u.h:57
int128 operator^(const int128 &a, const int128 &b)
Definition: int128s.h:175
uint128(const uint128 &a)
Definition: int128u.h:55
int64u lo
Definition: int128u.h:42
int128 operator<<(const int128 &a, unsigned int n)
Definition: int128s.h:168
bool operator>=(const int128 &a, const int128 &b)
Definition: int128s.h:182
friend bool operator||(const uint128 &, const uint128 &)
friend bool operator==(const uint128 &, const uint128 &)