50 inline int128 () noexcept : lo(0), hi(0) {};
51 inline int128 (
const int128 & a) noexcept : lo (a.lo), hi (a.hi) {};
53 inline int128 (
const unsigned int & a) noexcept : lo (a), hi (0ll) {};
54 inline int128 (
const signed int & a) noexcept : lo (a), hi (0ll) {
55 if (a < 0) this->hi = -1ll;
58 inline int128 (
const int64u & a) noexcept : lo (a), hi (0ll) {};
59 inline int128 (
const int64s & a) noexcept : lo (a), hi (0ll) {
60 if (a < 0) this->hi = -1ll;
65 int128 (
const long double & a)
noexcept;
74 int128 (
const int64u & a,
const int64s & b) noexcept
92 int128 & operator >>= (
unsigned int n) noexcept;
93 int128 & operator <<= (
unsigned int n) noexcept;
100 inline const
int128 & operator + () const noexcept {
return *
this; };
104 return *
this += (-b);
108 *
this = this->
div (b, dummy);
112 this->
div (b, *
this);
117 int toInt () const noexcept {
return (
int) this->lo; };
118 int64s
toInt64 () const noexcept {
return (int64s) this->lo; };
120 const char *
toString (
unsigned int radix = 10) const noexcept;
129 bool bit (
unsigned int n) const noexcept;
130 void bit (
unsigned int n,
bool val) noexcept;
132#if defined(__GNUC__) && !defined(__ANDROID_API__)
133 __attribute__ ((__aligned__ (16), __packed__))
159 return int128 (a) >>= n; }
161 return int128 (a) <<= n; }
int128(const char *sz) noexcept
int128 & operator/=(const int128 &b) noexcept
Definition int128s.h:106
int128 & operator-=(const int128 &b) noexcept
Definition int128s.h:103
const int128 & operator+() const noexcept
Definition int128s.h:100
int128(const float a) noexcept
int128 & operator%=(const int128 &b) noexcept
Definition int128s.h:111
const char * toString(unsigned int radix=10) const noexcept
int128(const double &a) noexcept
int128 div(const int128 &, int128 &) const noexcept
int128(const signed int &a) noexcept
Definition int128s.h:54
double toDouble() const noexcept
int128() noexcept
Definition int128s.h:50
float toFloat() const noexcept
bool operator!() const noexcept
int128(const int64u &a) noexcept
Definition int128s.h:58
friend bool operator<(const int128 &, const int128 &) noexcept
int64s toInt64() const noexcept
Definition int128s.h:118
int128(const int64s &a) noexcept
Definition int128s.h:59
friend bool operator==(const int128 &, const int128 &) noexcept
bool bit(unsigned int n) const noexcept
long double toLongDouble() const noexcept
int128 operator-() const noexcept
int128(const long double &a) noexcept
friend bool operator&&(const int128 &, const int128 &) noexcept
int toInt() const noexcept
Definition int128s.h:117
int128(const unsigned int &a) noexcept
Definition int128s.h:53
int128(const int128 &a) noexcept
Definition int128s.h:51
friend bool operator||(const int128 &, const int128 &) noexcept
Definition BitStream.h:24
bool operator>=(const int128 &a, const int128 &b) noexcept
Definition int128s.h:174
int128 operator|(const int128 &a, const int128 &b) noexcept
Definition int128s.h:165
int128 operator%(const int128 &a, const int128 &b) noexcept
Definition int128s.h:155
bool operator<=(const int128 &a, const int128 &b) noexcept
Definition int128s.h:172
int128 operator/(const int128 &a, const int128 &b) noexcept
Definition int128s.h:153
int128 operator>>(const int128 &a, unsigned int n) noexcept
Definition int128s.h:158
int128 operator<<(const int128 &a, unsigned int n) noexcept
Definition int128s.h:160
bool operator>(const int128 &a, const int128 &b) noexcept
Definition int128s.h:170
int128 operator&(const int128 &a, const int128 &b) noexcept
Definition int128s.h:163
int128 int128s
Definition int128s.h:184
int128 operator*(const int128 &a, const int128 &b) noexcept
Definition int128s.h:151
int128 operator^(const int128 &a, const int128 &b) noexcept
Definition int128s.h:167
bool operator!=(const int128 &a, const int128 &b) noexcept
Definition int128s.h:176