mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-21 13:10:08 +01:00
Remove redundant assignments (dead stores)
This commit is contained in:
@@ -80,18 +80,16 @@ static void SipHash_32b(benchmark::State& state)
|
||||
static void FastRandom_32bit(benchmark::State& state)
|
||||
{
|
||||
FastRandomContext rng(true);
|
||||
uint32_t x = 0;
|
||||
while (state.KeepRunning()) {
|
||||
x += rng.rand32();
|
||||
rng.rand32();
|
||||
}
|
||||
}
|
||||
|
||||
static void FastRandom_1bit(benchmark::State& state)
|
||||
{
|
||||
FastRandomContext rng(true);
|
||||
uint32_t x = 0;
|
||||
while (state.KeepRunning()) {
|
||||
x += rng.randbool();
|
||||
rng.randbool();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user