|
FastLED 3.10.6
|
| bool fl::anonymous_namespace{white_allocation.cpp.hpp}::narrowTotalForPair | ( | const SplitBound & | lower, |
| const SplitBound & | upper, | ||
| i64 * | low, | ||
| i64 * | high ) |
The totals at which lower <= upper holds, narrowed into [*low, *high].
Returns false when the pair excludes every total, which is the one case the caller cannot express as a narrowed interval.
Cross-multiplied rather than divided first: with positive denominators the inequality
(nL + mL*s) / qL <= (nU + mU*s) / qU
is s * (qU*mL - qL*mU) <= qL*nU - qU*nL, one linear inequality in s whose coefficients are exact in i64.
Definition at line 332 of file white_allocation.cpp.hpp.
References fl::FL_NO_EXCEPT, and narrowTotalForPair().
Referenced by narrowTotalForPair().
Here is the call graph for this function:
Here is the caller graph for this function: