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

◆ scaleGamutQ16()

i32 fl::anonymous_namespace{gamut_map.cpp.hpp}::scaleGamutQ16 ( i32 value,
i32 factor )

Scale an s16.16 value by an s16.16 factor, rounding to nearest.

Definition at line 102 of file gamut_map.cpp.hpp.

102 {
103 const i64 product = static_cast<i64>(value) * static_cast<i64>(factor);
104 return static_cast<i32>((product + 32768) >> 16);
105}
constexpr int type_rank< T >::value
fl::i64 i64
Definition stdint.h:221

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

Referenced by chromaCandidateXyz(), and scaleGamutQ16().

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