mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
13 lines
334 B
C++
13 lines
334 B
C++
|
#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);
|