![]() |
Bitcoin Core
27.1.0
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 |
Template base class for unsigned big integers.
Definition at line 24 of file arith_uint256.h.
Definition at line 32 of file arith_uint256.h.
Definition at line 38 of file arith_uint256.h.
Definition at line 51 of file arith_uint256.h.
| unsigned int base_uint< BITS >::bits | ( | ) | const |
Returns the position of the highest bit set plus one, or zero if the value is zero.
Definition at line 156 of file arith_uint256.cpp.
Definition at line 102 of file arith_uint256.cpp.
| bool base_uint< BITS >::EqualTo | ( | uint64_t | b | ) | const |
Definition at line 114 of file arith_uint256.cpp.
| double base_uint< BITS >::getdouble | ( | ) | const |
| std::string base_uint< BITS >::GetHex | ( | ) | const |
|
inline |
|
inline |
Definition at line 94 of file arith_uint256.h.
Definition at line 48 of file arith_uint256.cpp.
| base_uint< BITS > & base_uint< BITS >::operator*= | ( | const base_uint< BITS > & | b | ) |
Definition at line 60 of file arith_uint256.cpp.
Definition at line 163 of file arith_uint256.h.
Definition at line 172 of file arith_uint256.h.
|
inline |
Definition at line 125 of file arith_uint256.h.
Definition at line 143 of file arith_uint256.h.
Definition at line 67 of file arith_uint256.h.
Definition at line 180 of file arith_uint256.h.
Definition at line 189 of file arith_uint256.h.
|
inline |
Definition at line 137 of file arith_uint256.h.
Definition at line 151 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator/= | ( | const base_uint< BITS > & | b | ) |
Definition at line 76 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 44 of file arith_uint256.h.
Definition at line 78 of file arith_uint256.h.
| base_uint< BITS > & base_uint< BITS >::operator>>= | ( | unsigned int | shift | ) |
Definition at line 31 of file arith_uint256.cpp.
|
inline |
Definition at line 87 of file arith_uint256.h.
Definition at line 108 of file arith_uint256.h.
|
inline |
Definition at line 101 of file arith_uint256.h.
Definition at line 115 of file arith_uint256.h.
Definition at line 59 of file arith_uint256.h.
|
inline |
| std::string base_uint< BITS >::ToString | ( | ) | const |
|
friend |
Definition at line 205 of file arith_uint256.h.
|
friend |
Definition at line 211 of file arith_uint256.h.
|
friend |
Definition at line 217 of file arith_uint256.h.
|
friend |
Definition at line 202 of file arith_uint256.h.
Definition at line 209 of file arith_uint256.h.
|
friend |
Definition at line 200 of file arith_uint256.h.
|
friend |
Definition at line 201 of file arith_uint256.h.
|
friend |
Definition at line 203 of file arith_uint256.h.
|
friend |
Definition at line 213 of file arith_uint256.h.
Definition at line 208 of file arith_uint256.h.
|
friend |
Definition at line 215 of file arith_uint256.h.
|
friend |
Definition at line 210 of file arith_uint256.h.
|
friend |
Definition at line 216 of file arith_uint256.h.
|
friend |
Definition at line 212 of file arith_uint256.h.
|
friend |
Definition at line 214 of file arith_uint256.h.
Definition at line 207 of file arith_uint256.h.
|
friend |
Definition at line 206 of file arith_uint256.h.
|
friend |
Definition at line 204 of file arith_uint256.h.
Definition at line 29 of file arith_uint256.h.
|
staticprotected |
Definition at line 28 of file arith_uint256.h.
1.8.14