FastLED 3.10.6
Loading...
Searching...
No Matches

◆ clampOklabQ16()

i32 fl::anonymous_namespace{oklab_q16.cpp.hpp}::clampOklabQ16 ( i32 value,
i32 bound )

Clamp into a symmetric domain.

Named for this file because .cpp.hpp files share a translation unit under the unity build, so an anonymous namespace does not isolate it from a same-named helper elsewhere in fl/gfx.

Definition at line 53 of file oklab_q16.cpp.hpp.

53 {
54 if (value > bound) {
55 return bound;
56 }
57 if (value < -bound) {
58 return -bound;
59 }
60 return value;
61}
constexpr int type_rank< T >::value

References clampOklabQ16(), fl::FL_NO_EXCEPT, and fl::type_rank< T >::value.

Referenced by clampOklabQ16(), and signedCubeQ16().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: