mirror of
https://github.com/izzy2lost/mame.git
synced 2026-03-10 12:32:38 -07:00
14 lines
360 B
C++
14 lines
360 B
C++
#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);
|