FastLED 3.9.15
Loading...
Searching...
No Matches

◆ fmod_impl_double()

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

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

413 {
414#if FL_MATH_USE_LIBM
415 return ::fmod(x, y);
416#else
417 if (y == 0.0) return 0.0;
418 const double q = x / y;
419 const double t = q >= 0.0 ? floor_impl_double(q) : ceil_impl_double(q);
420 return x - t * y;
421#endif
422}
double floor_impl_double(double value)
Definition math.cpp.hpp:52
double ceil_impl_double(double value)
Definition math.cpp.hpp:70

References ceil_impl_double(), 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: