FastLED 3.9.15
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 166 of file primitives.h.

166 {
167 return detail::aaRatioDispatch(num, denom, inv_denom,
169}
Coord aaRatioDispatch(Coord num, Coord, Coord inv_denom, fl::false_type)
Definition primitives.h:150

References fl::gfx::detail::aaRatioDispatch().

+ Here is the call graph for this function: