blob: 07bfa02bb1d90ce6560d3befc806873bfdd58d6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
#include "benchmark/benchmark_api.h"
#include "osdcomm.h"
#include "eminline.h"
static void BM_count_leading_zeros_native(benchmark::State& state) {
UINT32 cnt = 0x332533;
while (state.KeepRunning()) {
(void)count_leading_zeros(cnt);
cnt++;
}
}
// Register the function as a benchmark
BENCHMARK(BM_count_leading_zeros_native);
|