summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-10-25 19:54:38 +0000
committerKarl Heuer <kwzh@gnu.org>1995-10-25 19:54:38 +0000
commitfa43b1e8822e55d0e8d27c27c28d150d2e65b8c3 (patch)
tree9ec95e4184025dac33f418bc6df70b0b66550f8c /src
parent24b704fa6e80f7eae66bfcbb38857b9cf0bc214b (diff)
downloademacs-fa43b1e8822e55d0e8d27c27c28d150d2e65b8c3.tar.gz
[!HAVE_FMOD] (fmod): Make consistent with ANSI definition.
Don't use drem; it's not the same function.
Diffstat (limited to 'src')
-rw-r--r--src/data.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c
index 826fec57a87..53e40c11cef 100644
--- a/src/data.c
+++ b/src/data.c
@@ -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
}
#endif /* ! HAVE_FMOD */