summaryrefslogblamecommitdiffstatshomepage
path: root/benchmarks/eminline_native.cpp
blob: 89c4e3f5ec3b37a1f69b40cec4d56547bed25165 (plain) (tree)
1
2
3
4
5
6

                                    
                    

                                                                    
                                






                                               
#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(cnt);
		cnt++;
	}
}
// Register the function as a benchmark
BENCHMARK(BM_count_leading_zeros_native);