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

Function constexpr_mod_check

tests/fl/math/fixed_point.cpp:904–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902// Helper: Verify mod is constexpr
903template <typename T>
904constexpr bool constexpr_mod_check(float a, float b) {
905 return T::mod(T(a), T(b)).raw() == T::mod(T(a), T(b)).raw();
906}
907
908// Helper: Verify floor is constexpr
909template <typename T>

Callers

nothing calls this directly

Calls 3

modFunction · 0.85
TEnum · 0.85
rawMethod · 0.45

Tested by

no test coverage detected