Bitcoin Core  22.99.0
P2P Digital Currency
Functions | Variables
bloom.cpp File Reference
#include <common/bloom.h>
#include <hash.h>
#include <primitives/transaction.h>
#include <random.h>
#include <script/script.h>
#include <script/standard.h>
#include <span.h>
#include <streams.h>
#include <util/fastrange.h>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <limits>
#include <vector>
Include dependency graph for bloom.cpp:

Go to the source code of this file.


static uint32_t RollingBloomHash (unsigned int nHashNum, uint32_t nTweak, Span< const unsigned char > vDataToHash)


static constexpr double LN2SQUARED = 0.4804530139182014246671025263266649717305529515945455
static constexpr double LN2 = 0.6931471805599453094172321214581765680755001343602552

Function Documentation

◆ RollingBloomHash()

static uint32_t RollingBloomHash ( unsigned int  nHashNum,
uint32_t  nTweak,
Span< const unsigned char >  vDataToHash 

Definition at line 190 of file bloom.cpp.

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

Variable Documentation

◆ LN2

constexpr double LN2 = 0.6931471805599453094172321214581765680755001343602552

Definition at line 23 of file bloom.cpp.


constexpr double LN2SQUARED = 0.4804530139182014246671025263266649717305529515945455

Definition at line 22 of file bloom.cpp.