Remove redundant assignments (dead stores)

This commit is contained in:
practicalswift
2018-07-26 16:33:45 +02:00
parent e577669062
commit cdf4089457
4 changed files with 9 additions and 15 deletions

View File

@@ -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();
}
}