FastLED 3.10.10
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 173 of file primitives.h.

173 {
174 return detail::aaRatioDispatch(num, denom, inv_denom,
176}
Coord aaRatioDispatch(Coord num, Coord, Coord inv_denom, fl::false_type) FL_NO_EXCEPT
Definition primitives.h:157

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

+ Here is the call graph for this function: