28 }
else if (x > std::numeric_limits<int64_t>::min()) {
52 int sign_a = (
a1 == 0 ? 0 :
a1 < 0 ? -1 : 1) * (
a2 == 0 ? 0 :
a2 < 0 ? -1 : 1);
53 int sign_b = (
b1 == 0 ? 0 :
b1 < 0 ? -1 : 1) * (
b2 == 0 ? 0 :
b2 < 0 ? -1 : 1);
149 }
else if (
expect > 0.0L) {
207 }
else if (
expect > 0.0L) {
223 if (
mul64 < std::numeric_limits<int64_t>::max() / 1000 &&
224 mul64 > std::numeric_limits<int64_t>::min() / 1000 &&
int64_t CAmount
Amount in satoshis (Can be negative)
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
CAmount GetFee(int32_t virtual_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
T ConsumeIntegralInRange(T min, T max)
256-bit unsigned big integer.
Data structure storing a fee and size, ordered by increasing fee/size.
int64_t EvaluateFeeDown(int32_t at_size) const noexcept
Compute the fee for a given size at_size using this object's feerate, rounding down.
static int64_t DivFallback(std::pair< int64_t, uint32_t > n, int32_t d, bool round_down) noexcept
Helper function for 96/32 signed division, rounding towards negative infinity (if round_down) or posi...
int64_t EvaluateFeeUp(int32_t at_size) const noexcept
Compute the fee for a given size at_size using this object's feerate, rounding up.
static constexpr auto Div
static constexpr auto Mul
static std::pair< int64_t, uint32_t > MulFallback(int64_t a, int32_t b) noexcept
Helper function for 32*64 signed multiplication, returning an unspecified but totally ordered type.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.