FastLED 3.10.8
Loading...
Searching...
No Matches

◆ aaRatio()

template<typename Coord>
Coord fl::gfx::aaRatio ( Coord num,
Coord denom,
Coord inv_denom )
inline

Compute num/denom using the best strategy for the Coord type:

  • float, s16x16, s8x24 (FRAC_BITS >= 16): multiply by precomputed reciprocal
  • s8x8, s12x4, s24x8 (FRAC_BITS < 16): direct division

Definition at line 168 of file primitives.h.

168 {
169 return detail::aaRatioDispatch(num, denom, inv_denom,
171}
Coord aaRatioDispatch(Coord num, Coord, Coord inv_denom, fl::false_type) FL_NO_EXCEPT
Definition primitives.h:152

References fl::gfx::detail::aaRatioDispatch(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: