![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
Template base class for unsigned big integers. More...
#include <arith_uint256.h>
Protected Attributes | |
| uint32_t | pn [WIDTH] |
| Big integer represented with 32-bit digits, least-significant first. | |
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 25 of file arith_uint256.h.
|
inlineconstexpr |
Definition at line 34 of file arith_uint256.h.
|
default |
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.
Numeric ordering (unlike base_blob::Compare)
Definition at line 102 of file arith_uint256.cpp.
Definition at line 114 of file arith_uint256.cpp.
Definition at line 128 of file arith_uint256.cpp.
Hex encoding of the number (with the most significant digits first).
Definition at line 140 of file arith_uint256.cpp.
Definition at line 222 of file arith_uint256.h.
Definition at line 86 of file arith_uint256.h.
Definition at line 155 of file arith_uint256.h.
Definition at line 164 of file arith_uint256.h.
Definition at line 59 of file arith_uint256.h.
Definition at line 172 of file arith_uint256.h.
Definition at line 181 of file arith_uint256.h.
Definition at line 129 of file arith_uint256.h.
Definition at line 79 of file arith_uint256.h.
Definition at line 93 of file arith_uint256.h.
Definition at line 51 of file arith_uint256.h.
Definition at line 198 of file arith_uint256.h.
Definition at line 195 of file arith_uint256.h.
Definition at line 202 of file arith_uint256.h.
Definition at line 193 of file arith_uint256.h.
Definition at line 194 of file arith_uint256.h.
Definition at line 196 of file arith_uint256.h.
Definition at line 201 of file arith_uint256.h.
|
friend |
Definition at line 204 of file arith_uint256.h.
Definition at line 203 of file arith_uint256.h.
Definition at line 205 of file arith_uint256.h.
Definition at line 200 of file arith_uint256.h.
Definition at line 199 of file arith_uint256.h.
Definition at line 197 of file arith_uint256.h.
Big integer represented with 32-bit digits, least-significant first.
Definition at line 31 of file arith_uint256.h.
Definition at line 29 of file arith_uint256.h.