MCPcopy Create free account
hub / github.com/MikeLankamp/fpm / trigonometry

Function trigonometry

benchmarks/trigonometry.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30template <typename TValue>
31static 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
40template <typename TValue, TValue (*func)(TValue, TValue)>
41static TValue func2_proxy(TValue value)

Callers

nothing calls this directly

Calls 1

DoNotOptimizeFunction · 0.85

Tested by

no test coverage detected