Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bitop.bench.cpp
Go to the documentation of this file.
2#include <benchmark/benchmark.h>
3
4using namespace benchmark;
5
6void count_leading_zeros(State& state) noexcept
7{
8 uint256_t input = 7;
9 for (auto _ : state) {
10 auto r = count_leading_zeros(input);
11 DoNotOptimize(r);
12 }
13}
15
16// NOLINTNEXTLINE macro invokation triggers style errors from googletest code
BENCHMARK(count_leading_zeros)
BENCHMARK_MAIN()
void count_leading_zeros(State &state) noexcept