From: Karl Heuer Date: Wed, 25 Oct 1995 19:54:38 +0000 (+0000) Subject: [!HAVE_FMOD] (fmod): Make consistent with ANSI definition. X-Git-Tag: emacs-19.34~2564 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa43b1e8822e55d0e8d27c27c28d150d2e65b8c3;p=emacs.git [!HAVE_FMOD] (fmod): Make consistent with ANSI definition. Don't use drem; it's not the same function. --- 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 */