![]() |
Bitcoin ABC 0.34.2
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 | operator~ () 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++ () |
| base_uint | operator++ (int) |
| base_uint & | operator-- () |
| base_uint | operator-- (int) |
| int | CompareTo (const base_uint &b) const |
| bool | EqualTo (uint64_t b) const |
| std::string | GetHex () const |
| 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 | |
| base_uint | operator+ (const base_uint &a, const base_uint &b) |
| base_uint | operator- (const base_uint &a, const base_uint &b) |
| base_uint | operator* (const base_uint &a, const base_uint &b) |
| base_uint | operator/ (const base_uint &a, const base_uint &b) |
| base_uint | operator| (const base_uint &a, const base_uint &b) |
| base_uint | operator& (const base_uint &a, const base_uint &b) |
| base_uint | operator^ (const base_uint &a, const base_uint &b) |
| base_uint | operator>> (const base_uint &a, int shift) |
| base_uint | operator<< (const base_uint &a, int shift) |
| base_uint | operator* (const base_uint &a, uint32_t b) |
| bool | operator== (const base_uint &a, const base_uint &b) |
| std::strong_ordering | operator<=> (const base_uint &a, const base_uint &b) |
| bool | operator== (const base_uint &a, uint64_t b) |
Template base class for unsigned big integers.
Definition at line 24 of file arith_uint256.h.
|
inline |
Definition at line 30 of file arith_uint256.h.
|
inline |
Definition at line 40 of file arith_uint256.h.
|
inline |
Definition at line 57 of file arith_uint256.h.
| 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 158 of file arith_uint256.cpp.
Definition at line 113 of file arith_uint256.cpp.
| bool base_uint< BITS >::EqualTo | ( | uint64_t | b | ) | const |
Definition at line 125 of file arith_uint256.cpp.
| double base_uint< BITS >::getdouble |
| std::string base_uint< BITS >::GetHex |
Definition at line 150 of file arith_uint256.cpp.
|
inline |
|
inline |
Definition at line 104 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator*= | ( | const base_uint< BITS > & | b | ) |
Definition at line 64 of file arith_uint256.cpp.
Definition at line 53 of file arith_uint256.cpp.
Definition at line 166 of file arith_uint256.h.
Definition at line 175 of file arith_uint256.h.
|
inline |
Definition at line 133 of file arith_uint256.h.
Definition at line 148 of file arith_uint256.h.
Definition at line 77 of file arith_uint256.h.
Definition at line 182 of file arith_uint256.h.
Definition at line 191 of file arith_uint256.h.
|
inline |
Definition at line 143 of file arith_uint256.h.
Definition at line 155 of file arith_uint256.h.
| template base_uint< 6144 > & base_uint< BITS >::operator/= | ( | const base_uint< BITS > & | b | ) |
Definition at line 79 of file arith_uint256.cpp.
| base_uint< BITS > & base_uint< BITS >::operator<<= | ( | unsigned int | shift | ) |
Definition at line 1 of file arith_uint256.cpp.
|
inline |
Definition at line 50 of file arith_uint256.h.
Definition at line 88 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator>>= | ( | unsigned int | shift | ) |
Definition at line 34 of file arith_uint256.cpp.
|
inline |
Definition at line 97 of file arith_uint256.h.
Definition at line 118 of file arith_uint256.h.
|
inline |
Definition at line 111 of file arith_uint256.h.
Definition at line 124 of file arith_uint256.h.
Definition at line 69 of file arith_uint256.h.
|
inline |
Definition at line 245 of file arith_uint256.h.
| std::string base_uint< BITS >::ToString |
|
friend |
Definition at line 216 of file arith_uint256.h.
|
friend |
Definition at line 207 of file arith_uint256.h.
Definition at line 228 of file arith_uint256.h.
|
friend |
Definition at line 201 of file arith_uint256.h.
|
friend |
Definition at line 204 of file arith_uint256.h.
|
friend |
Definition at line 210 of file arith_uint256.h.
Definition at line 225 of file arith_uint256.h.
|
friend |
Definition at line 234 of file arith_uint256.h.
|
friend |
Definition at line 231 of file arith_uint256.h.
|
friend |
Definition at line 238 of file arith_uint256.h.
Definition at line 222 of file arith_uint256.h.
|
friend |
Definition at line 219 of file arith_uint256.h.
|
friend |
Definition at line 213 of file arith_uint256.h.
Definition at line 27 of file arith_uint256.h.
|
staticconstexprprotected |
Definition at line 26 of file arith_uint256.h.