fmod, fmodl: Fix computation for large quotients x / y.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2012 19:56:32 +0000 (20:56 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2012 19:56:32 +0000 (20:56 +0100)
commit0874a5828bbb4784e9c9d54243b3c978e8e54ece
tree9fe13837280c0d85f656c05f6379b26869edadf5
parent3261e6f0337130c6bbde8db61e28c87bb901d749
fmod, fmodl: Fix computation for large quotients x / y.

* lib/fmod.c: Completely rewritten.
* lib/fmodl.c (fmodl): Use implementation of fmod.c with
USE_LONG_DOUBLE.
* modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
isnand. Remove fma.
* modules/fmodl (Depends-on): Add float, isfinite, signbit, fabsl,
frexpl, ldexpl, isnanl. Remove fma.
* m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
* m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
ChangeLog
lib/fmod.c
lib/fmodl.c
m4/fmod.m4
m4/fmodl.m4
modules/fmod
modules/fmodl