| 29 | |
| 30 | template <typename TValue> |
| 31 | static void trigonometry(benchmark::State& state, TValue (*func)(TValue)) |
| 32 | { |
| 33 | for (auto _ : state) |
| 34 | { |
| 35 | TValue x{ static_cast<TValue>(s_x / 256.0) }; |
| 36 | benchmark::DoNotOptimize(func(x)); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | template <typename TValue, TValue (*func)(TValue, TValue)> |
| 41 | static TValue func2_proxy(TValue value) |
nothing calls this directly
no test coverage detected