remainder, remainderf, remainderl: Fix computation for large quotients.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2012 22:01:33 +0000 (23:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Mar 2012 22:01:33 +0000 (23:01 +0100)
commit9655379852fdbf3a0797035fc30a4060a2b191cf
treec3f82f8a0a0e726c83e4706de7be12d09f6c5b44
parent7feced3510dfaaeceba87eac4d5140977943e66d
remainder, remainderf, remainderl: Fix computation for large quotients.

* lib/remainder.c: Completely rewritten.
* lib/remainderf.c (remainderf): Use implementation of remainder.c with
USE_FLOAT.
* lib/remainderl.c (remainderl): Use implementation of remainder.c with
USE_LONG_DOUBLE.
* modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
isnand, isinf. Remove round, fma.
* modules/remainderf (Files): Add lib/remainder.c.
(Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
Remove roundf, fmaf.
* modules/remainderl (Files): Add lib/remainder.c.
(Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
isinf. Remove roundl, fmal.
* m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
REMAINDER_LIBM.
* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
REMAINDERF_LIBM.
* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
REMAINDERL_LIBM.
ChangeLog
lib/remainder.c
lib/remainderf.c
lib/remainderl.c
m4/remainder.m4
m4/remainderf.m4
m4/remainderl.m4
modules/remainder
modules/remainderf
modules/remainderl