Mercurial > emacs
changeset 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 | bc92156aa523 |
children | 9699410bf8bf |
files | src/data.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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 */