MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_pow_extended_impl

Function test_pow_extended_impl

tests/fl/math/fixed_point.cpp:736–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734
735template<typename T>
736void test_pow_extended_impl(float pow_x_3_0_max) {
737 // 2^3 = 8 (only for types that can represent 8)
738 if (T::INT_BITS > 4) {
739 FL_CHECK_CLOSE(T::pow(T(2.0f), T(3.0f)).to_float(), 8.0f, pow_x_3_0_max);
740 }
741}
742
743template<typename T>
744void test_smoothstep_impl(float smoothstep_max) {

Callers

nothing calls this directly

Calls 3

TEnum · 0.85
powFunction · 0.50
to_floatMethod · 0.45

Tested by

no test coverage detected