mame/benchmarks/eminline_native.cpp

14 lines
360 B
C++
Raw Normal View History

#include "benchmark/benchmark_api.h"
#include "osdcomm.h"
2016-03-08 13:09:32 +01:00
#include "osdcore.h"
#include "eminline.h"
static void BM_count_leading_zeros_native(benchmark::State& state) {
uint32_t cnt = 0x332533;
while (state.KeepRunning()) {
2021-06-22 14:42:29 +02:00
(void)count_leading_zeros_32(cnt);
cnt++;
}
}
// Register the function as a benchmark
BENCHMARK(BM_count_leading_zeros_native);