summaryrefslogtreecommitdiffstatshomepage
path: root/benchmarks/eminline_native.cpp
blob: eb5a6c748f912a7b11d7a8373fe7fbf3d4990b8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "benchmark/benchmark_api.h"
#include "osdcomm.h"
#include "osdcore.h"
#include "eminline.h"
static void BM_count_leading_zeros_native(benchmark::State& state) {
	uint32_t cnt = 0x332533;
	while (state.KeepRunning()) {
		(void)count_leading_zeros_32(cnt);
		cnt++;
	}
}
// Register the function as a benchmark
BENCHMARK(BM_count_leading_zeros_native);