Mercurial > emacs
diff src/data.c @ 13296:76034e1fc62e
[!HAVE_FMOD] (fmod): Make consistent with ANSI definition.
Don't use drem; it's not the same function.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Wed, 25 Oct 1995 19:54:38 +0000 |
| parents | 5fd4e8e4185a |
| children | 941c37982f37 |
line wrap: on
line diff
--- a/src/data.c Wed Oct 25 19:33:48 1995 +0000 +++ b/src/data.c Wed Oct 25 19:54:38 1995 +0000 @@ -2142,11 +2142,9 @@ 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 */
