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

Function func2_proxy

benchmarks/trigonometry.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename TValue, TValue (*func)(TValue, TValue)>
41static TValue func2_proxy(TValue value)
42{
43 // Add a 'random' offset for the second argument
44 return func(value, value + 2);
45}
46
47BENCHMARK_TEMPLATE1_CAPTURE(trigonometry, sin, float, &std::sin);
48BENCHMARK_TEMPLATE1_CAPTURE(trigonometry, cos, float, &std::cos);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected