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

◆ fmod_impl_double()

double fl::fmod_impl_double ( double x,
double y )

Definition at line 495 of file math.cpp.hpp.

495 {
496#if FL_MATH_USE_LIBM
497 return ::fmod(x, y);
498#else
499 if (y == 0.0) return 0.0;
500 const double q = x / y;
501 const double t = q >= 0.0 ? floor_impl_double(q) : ceil_impl_double(q);
502 return x - t * y;
503#endif
504}
double ceil_impl_double(double value) FL_NO_EXCEPT
Definition math.cpp.hpp:71
double floor_impl_double(double value) FL_NO_EXCEPT
Definition math.cpp.hpp:53

References ceil_impl_double(), FL_NO_EXCEPT, floor_impl_double(), t, x, and y.

Referenced by fmod< double >().

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