Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bitop.bench.cpp
Go to the documentation of this file.
1
#include "
count_leading_zeros.hpp
"
2
#include <benchmark/benchmark.h>
3
4
using namespace
benchmark;
5
6
void
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
}
14
BENCHMARK
(
count_leading_zeros
);
15
16
// NOLINTNEXTLINE macro invokation triggers style errors from googletest code
17
BENCHMARK_MAIN
();
BENCHMARK
BENCHMARK(count_leading_zeros)
BENCHMARK_MAIN
BENCHMARK_MAIN()
count_leading_zeros
void count_leading_zeros(State &state) noexcept
Definition
bitop.bench.cpp:6
bb::numeric::uint256_t
Definition
uint256.hpp:32
count_leading_zeros.hpp
src
barretenberg
numeric
bitop
bitop.bench.cpp
Generated by
1.9.8