Expand description
Pre-computed constants for constant folding optimization
These constants are computed at compile time to avoid runtime computation in hot paths. Reference: BLVM Optimization Pass 2 - Constant Folding
Constantsยง
- BTC_
PER_ SATOSHI - Pre-computed: Inverse of SATOSHIS_PER_BTC (for BTC conversion)
- MAX_
MONEY_ U64 - Pre-computed: MAX_MONEY as u64 (for comparisons)
- ONE_
BTC_ SATOSHIS - Pre-computed: Number of satoshis in 1 BTC (for readability)
- U32_MAX
- Pre-computed: 2^32 - 1 (for 32-bit wrapping checks)
- U64_MAX
- Pre-computed: 2^64 - 1 (used for wrapping arithmetic checks)