Commit fa43b1e8 authored by Karl Heuer's avatar Karl Heuer
Browse files

[!HAVE_FMOD] (fmod): Make consistent with ANSI definition.

Don't use drem; it's not the same function.
parent 24b704fa
......@@ -2142,11 +2142,9 @@ double
fmod (f1, f2)
double f1, f2;
#ifdef HAVE_DREM /* Some systems use this non-standard name. */
return (drem (f1, f2));
#else /* Other systems don't seem to have it at all. */
if (f2 < 0.0)
f2 = -f2;
return (f1 - f2 * floor (f1/f2));
#endif /* ! HAVE_FMOD */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment