Hash :
11368c16
Author :
Date :
2011-10-10T01:08:51
rintl: Simplify for platforms where 'long double' == 'double'. * lib/rintl.c: Include <config.h>. (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/rintl (Depends-on): Add rint. Update conditions.
Description:
rintl() function: round according to the current rounding mode.
Files:
lib/rintl.c
lib/rint.c
m4/rintl.m4
m4/mathfunc.m4
Depends-on:
math
rint [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
configure.ac:
gl_FUNC_RINTL
if test $HAVE_RINTL = 0; then
AC_LIBOBJ([rintl])
fi
gl_MATH_MODULE_INDICATOR([rintl])
Makefile.am:
Include:
<math.h>
Link:
$(RINTL_LIBM)
License:
LGPL
Maintainer:
Bruno Haible