mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
bloom: use constexpr where appropriate
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#define LN2SQUARED 0.4804530139182014246671025263266649717305529515945455
|
||||
#define LN2 0.6931471805599453094172321214581765680755001343602552
|
||||
static constexpr double LN2SQUARED = 0.4804530139182014246671025263266649717305529515945455;
|
||||
static constexpr double LN2 = 0.6931471805599453094172321214581765680755001343602552;
|
||||
|
||||
CBloomFilter::CBloomFilter(const unsigned int nElements, const double nFPRate, const unsigned int nTweakIn, unsigned char nFlagsIn) :
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user