diff options
author | 2016-02-21 11:48:45 +0100 | |
---|---|---|
committer | 2016-02-21 11:48:45 +0100 | |
commit | cc24a339d8c0517259084b5c178d784626ba965c (patch) | |
tree | 9868e9687b5802ae0a3733712a3bbeb3bc75c953 /benchmarks/eminline_native.cpp | |
parent | b5daabda5495dea5c50e17961ecfed2ea8619d76 (diff) |
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'benchmarks/eminline_native.cpp')
-rw-r--r-- | benchmarks/eminline_native.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/benchmarks/eminline_native.cpp b/benchmarks/eminline_native.cpp new file mode 100644 index 00000000000..07bfa02bb1d --- /dev/null +++ b/benchmarks/eminline_native.cpp @@ -0,0 +1,15 @@ +// license:BSD-3-Clause +// copyright-holders:Miodrag Milanovic + +#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); |