Hash :
96553798
Author :
Date :
2012-03-04T23:01:33
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Description:
remainder() function: floating-point remainder function.
Files:
lib/remainder.c
m4/remainder.m4
m4/mathfunc.m4
Depends-on:
math
isfinite [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
signbit [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
fabs [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
fmod [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
isnand [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
isinf [test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1]
configure.ac:
gl_FUNC_REMAINDER
if test $HAVE_REMAINDER = 0 || test $REPLACE_REMAINDER = 1; then
AC_LIBOBJ([remainder])
fi
gl_MATH_MODULE_INDICATOR([remainder])
Makefile.am:
Include:
<math.h>
Link:
$(REMAINDER_LIBM)
License:
LGPL
Maintainer:
Bruno Haible