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

Function constexpr_step_check

tests/fl/math/fixed_point.cpp:952–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950// Helper: Verify step is constexpr
951template <typename T>
952constexpr bool constexpr_step_check(float edge, float x) {
953 return T::step(T(edge), T(x)).raw() == T::step(T(edge), T(x)).raw();
954}
955
956// Helper: Verify sqrt is constexpr
957template <typename T>

Callers

nothing calls this directly

Calls 3

stepFunction · 0.85
TEnum · 0.85
rawMethod · 0.45

Tested by

no test coverage detected