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

Function test_pow_above_one_unsigned_impl

tests/fl/math/fixed_point.cpp:5193–5198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5191// fire (it only triggers on base near 1.0, not on result).
5192template <typename FP>
5193static void test_pow_above_one_unsigned_impl() {
5194 const FP two(2.0f);
5195 const FP half(0.5f);
5196 const FP one(1.0f);
5197 FL_CHECK(FP::pow(two, half).raw() > one.raw());
5198}
5199
5200FL_TEST_CASE("pow boundary - exactly 1.0 (#2969)") {
5201 FL_SUBCASE("s16x16") { test_pow_exactly_one_impl<s16x16>(); }

Callers

nothing calls this directly

Calls 2

powFunction · 0.50
rawMethod · 0.45

Tested by

no test coverage detected