Bitcoin Core  22.99.0
P2P Digital Currency
Functions
fastrange.h File Reference
#include <cstdint>
Include dependency graph for fastrange.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint32_t FastRange32 (uint32_t x, uint32_t n)
 Fast range reduction with 32-bit input and 32-bit range. More...
 
static uint64_t FastRange64 (uint64_t x, uint64_t n)
 Fast range reduction with 64-bit input and 64-bit range. More...
 

Function Documentation

◆ FastRange32()

static uint32_t FastRange32 ( uint32_t  x,
uint32_t  n 
)
inlinestatic

Fast range reduction with 32-bit input and 32-bit range.

Definition at line 19 of file fastrange.h.

Here is the caller graph for this function:

◆ FastRange64()

static uint64_t FastRange64 ( uint64_t  x,
uint64_t  n 
)
inlinestatic

Fast range reduction with 64-bit input and 64-bit range.

Definition at line 25 of file fastrange.h.

Here is the caller graph for this function: