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

Function test_pow_well_below_one_signed_impl

tests/fl/math/fixed_point.cpp:5183–5188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5181// fire. Excludes u-types since their log2_fp doesn't support base < 1.0.
5182template <typename FP>
5183static void test_pow_well_below_one_signed_impl() {
5184 const FP half(0.5f);
5185 const FP two(2.0f);
5186 const FP one(1.0f);
5187 FL_CHECK(FP::pow(half, two).raw() < one.raw());
5188}
5189
5190// For unsigned types: pow(2.0, 0.5) approx 1.414 -- well above 1.0, snap must NOT
5191// fire (it only triggers on base near 1.0, not on result).

Callers

nothing calls this directly

Calls 2

powFunction · 0.50
rawMethod · 0.45

Tested by

no test coverage detected