Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bloom.cpp File Reference
#include <bloom.h>
#include <primitives/transaction.h>
#include <evo/specialtx.h>
#include <evo/providertx.h>
#include <evo/cbtx.h>
#include <llmq/quorums_commitment.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 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 23 of file bloom.cpp.

◆ LN2SQUARED

#define LN2SQUARED   0.4804530139182014246671025263266649717305529515945455

Definition at line 22 of file bloom.cpp.

Function Documentation

◆ FastMod()

static uint32_t FastMod ( uint32_t  x,
size_t  n 
)
inlinestatic

Definition at line 337 of file bloom.cpp.

Referenced by CRollingBloomFilter::contains(), and CRollingBloomFilter::insert().

◆ RollingBloomHash()

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

Definition at line 329 of file bloom.cpp.

References MurmurHash3().

Referenced by CRollingBloomFilter::contains(), and CRollingBloomFilter::insert().

Released under the MIT license