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

◆ splitBoundAt()

i64 fl::anonymous_namespace{white_allocation.cpp.hpp}::splitBoundAt ( const SplitBound & bound,
i64 total )

value at total s, in s16.16.

Definition at line 287 of file white_allocation.cpp.hpp.

287 {
288 const i64 scaled =
289 static_cast<i64>(bound.numerator) * 65536 + static_cast<i64>(bound.slope) * total;
290 return scaled / static_cast<i64>(bound.denominator);
291}
fl::i64 i64
Definition stdint.h:221

References fl::FL_NO_EXCEPT, and splitBoundAt().

Referenced by splitBoundAt().

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