Bitcoin ABC 0.30.7
P2P Digital Currency
|
Template base class for unsigned big integers. More...
#include <arith_uint256.h>
Public Member Functions | |
base_uint () | |
base_uint (const base_uint &b) | |
base_uint & | operator= (const base_uint &b) |
base_uint (uint64_t b) | |
base_uint (const std::string &str) | |
const base_uint | operator~ () const |
const base_uint | operator- () const |
double | getdouble () const |
base_uint & | operator= (uint64_t b) |
base_uint & | operator^= (const base_uint &b) |
base_uint & | operator&= (const base_uint &b) |
base_uint & | operator|= (const base_uint &b) |
base_uint & | operator^= (uint64_t b) |
base_uint & | operator|= (uint64_t b) |
base_uint & | operator<<= (unsigned int shift) |
base_uint & | operator>>= (unsigned int shift) |
base_uint & | operator+= (const base_uint &b) |
base_uint & | operator-= (const base_uint &b) |
base_uint & | operator+= (uint64_t b64) |
base_uint & | operator-= (uint64_t b64) |
base_uint & | operator*= (uint32_t b32) |
base_uint & | operator*= (const base_uint &b) |
base_uint & | operator/= (const base_uint &b) |
base_uint & | operator++ () |
const base_uint | operator++ (int) |
base_uint & | operator-- () |
const base_uint | operator-- (int) |
int | CompareTo (const base_uint &b) const |
bool | EqualTo (uint64_t b) const |
std::string | GetHex () const |
void | SetHex (const char *psz) |
void | SetHex (const std::string &str) |
std::string | ToString () const |
unsigned int | size () const |
unsigned int | bits () const |
Returns the position of the highest bit set plus one, or zero if the value is zero. More... | |
uint64_t | GetLow64 () const |
Protected Attributes | |
uint32_t | pn [WIDTH] |
Static Protected Attributes | |
static constexpr int | WIDTH = BITS / 32 |
Friends | |
const base_uint | operator+ (const base_uint &a, const base_uint &b) |
const base_uint | operator- (const base_uint &a, const base_uint &b) |
const base_uint | operator* (const base_uint &a, const base_uint &b) |
const base_uint | operator/ (const base_uint &a, const base_uint &b) |
const base_uint | operator| (const base_uint &a, const base_uint &b) |
const base_uint | operator& (const base_uint &a, const base_uint &b) |
const base_uint | operator^ (const base_uint &a, const base_uint &b) |
const base_uint | operator>> (const base_uint &a, int shift) |
const base_uint | operator<< (const base_uint &a, int shift) |
const base_uint | operator* (const base_uint &a, uint32_t b) |
bool | operator== (const base_uint &a, const base_uint &b) |
bool | operator!= (const base_uint &a, const base_uint &b) |
bool | operator> (const base_uint &a, const base_uint &b) |
bool | operator< (const base_uint &a, const base_uint &b) |
bool | operator>= (const base_uint &a, const base_uint &b) |
bool | operator<= (const base_uint &a, const base_uint &b) |
bool | operator== (const base_uint &a, uint64_t b) |
bool | operator!= (const base_uint &a, uint64_t b) |
Template base class for unsigned big integers.
Definition at line 23 of file arith_uint256.h.
|
inline |
Definition at line 29 of file arith_uint256.h.
|
inline |
Definition at line 39 of file arith_uint256.h.
|
inline |
Definition at line 56 of file arith_uint256.h.
|
explicit |
Definition at line 14 of file arith_uint256.cpp.
unsigned int base_uint< BITS >::bits |
Returns the position of the highest bit set plus one, or zero if the value is zero.
Definition at line 174 of file arith_uint256.cpp.
Definition at line 120 of file arith_uint256.cpp.
bool base_uint< BITS >::EqualTo | ( | uint64_t | b | ) | const |
Definition at line 132 of file arith_uint256.cpp.
double base_uint< BITS >::getdouble |
std::string base_uint< BITS >::GetHex |
Definition at line 157 of file arith_uint256.cpp.
|
inline |
|
inline |
Definition at line 105 of file arith_uint256.h.
base_uint< BITS > & base_uint< BITS >::operator*= | ( | const base_uint< BITS > & | b | ) |
Definition at line 71 of file arith_uint256.cpp.
Definition at line 60 of file arith_uint256.cpp.
Definition at line 167 of file arith_uint256.h.
Definition at line 176 of file arith_uint256.h.
|
inline |
Definition at line 134 of file arith_uint256.h.
Definition at line 149 of file arith_uint256.h.
Definition at line 78 of file arith_uint256.h.
Definition at line 183 of file arith_uint256.h.
Definition at line 192 of file arith_uint256.h.
|
inline |
Definition at line 144 of file arith_uint256.h.
Definition at line 156 of file arith_uint256.h.
base_uint< BITS > & base_uint< BITS >::operator/= | ( | const base_uint< BITS > & | b | ) |
Definition at line 86 of file arith_uint256.cpp.
base_uint< BITS > & base_uint< BITS >::operator<<= | ( | unsigned int | shift | ) |
Definition at line 14 of file arith_uint256.cpp.
|
inline |
Definition at line 49 of file arith_uint256.h.
Definition at line 89 of file arith_uint256.h.
base_uint< BITS > & base_uint< BITS >::operator>>= | ( | unsigned int | shift | ) |
Definition at line 41 of file arith_uint256.cpp.
|
inline |
Definition at line 98 of file arith_uint256.h.
Definition at line 119 of file arith_uint256.h.
|
inline |
Definition at line 112 of file arith_uint256.h.
Definition at line 125 of file arith_uint256.h.
Definition at line 70 of file arith_uint256.h.
void base_uint< BITS >::SetHex | ( | const char * | psz | ) |
void base_uint< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 166 of file arith_uint256.cpp.
|
inline |
Definition at line 269 of file arith_uint256.h.
std::string base_uint< BITS >::ToString |
|
friend |
Definition at line 242 of file arith_uint256.h.
|
friend |
Definition at line 260 of file arith_uint256.h.
|
friend |
Definition at line 222 of file arith_uint256.h.
|
friend |
Definition at line 210 of file arith_uint256.h.
|
friend |
Definition at line 236 of file arith_uint256.h.
|
friend |
Definition at line 202 of file arith_uint256.h.
|
friend |
Definition at line 206 of file arith_uint256.h.
|
friend |
Definition at line 214 of file arith_uint256.h.
|
friend |
Definition at line 248 of file arith_uint256.h.
|
friend |
Definition at line 233 of file arith_uint256.h.
|
friend |
Definition at line 254 of file arith_uint256.h.
|
friend |
Definition at line 239 of file arith_uint256.h.
|
friend |
Definition at line 257 of file arith_uint256.h.
|
friend |
Definition at line 245 of file arith_uint256.h.
|
friend |
Definition at line 251 of file arith_uint256.h.
|
friend |
Definition at line 230 of file arith_uint256.h.
|
friend |
Definition at line 226 of file arith_uint256.h.
|
friend |
Definition at line 218 of file arith_uint256.h.
Definition at line 26 of file arith_uint256.h.
|
staticconstexprprotected |
Definition at line 25 of file arith_uint256.h.