Bitcoin Core  0.20.99
P2P Digital Currency
Macros | Functions
bloom.cpp File Reference
#include <bloom.h>
#include <primitives/transaction.h>
#include <hash.h>
#include <script/script.h>
#include <script/standard.h>
#include <random.h>
#include <streams.h>
#include <math.h>
#include <stdlib.h>
#include <algorithm>
Include dependency graph for bloom.cpp:

Go to the source code of this file.

Macros

#define LN2SQUARED   0.4804530139182014246671025263266649717305529515945455
 
#define LN2   0.6931471805599453094172321214581765680755001343602552
 

Functions

static uint32_t RollingBloomHash (unsigned int nHashNum, uint32_t nTweak, const std::vector< unsigned char > &vDataToHash)
 
static uint32_t FastMod (uint32_t x, size_t n)
 

Macro Definition Documentation

◆ LN2

#define LN2   0.6931471805599453094172321214581765680755001343602552

Definition at line 20 of file bloom.cpp.

◆ LN2SQUARED

#define LN2SQUARED   0.4804530139182014246671025263266649717305529515945455

Definition at line 19 of file bloom.cpp.

Function Documentation

◆ FastMod()

static uint32_t FastMod ( uint32_t  x,
size_t  n 
)
inlinestatic

Definition at line 209 of file bloom.cpp.

Here is the caller graph for this function:

◆ RollingBloomHash()

static uint32_t RollingBloomHash ( unsigned int  nHashNum,
uint32_t  nTweak,
const std::vector< unsigned char > &  vDataToHash 
)
inlinestatic

Definition at line 201 of file bloom.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: