Bitcoin ABC  0.26.3
P2P Digital Currency
Macros | Functions
bloom.cpp File Reference
#include <bloom.h>
#include <hash.h>
#include <primitives/transaction.h>
#include <random.h>
#include <script/script.h>
#include <script/standard.h>
#include <streams.h>
#include <cmath>
#include <cstdlib>
#include <algorithm>
Include dependency graph for bloom.cpp:

Go to the source code of this file.


#define LN2SQUARED   0.4804530139182014246671025263266649717305529515945455
#define LN2   0.6931471805599453094172321214581765680755001343602552


static uint32_t RollingBloomHash (uint32_t nHashNum, uint32_t nTweak, const std::vector< uint8_t > &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.


#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 

Definition at line 232 of file bloom.cpp.

Here is the caller graph for this function:

◆ RollingBloomHash()

static uint32_t RollingBloomHash ( uint32_t  nHashNum,
uint32_t  nTweak,
const std::vector< uint8_t > &  vDataToHash 

Definition at line 223 of file bloom.cpp.

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