Hash :
3d57d93c
Author :
Date :
2011-10-10T01:05:53
truncl: Simplify for platforms where 'long double' == 'double'. * lib/truncl.c: Include <config.h>. (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/truncl (Depends-on): Add trunc. Update conditions.
Description:
truncl() function: round towards zero.
Files:
lib/truncl.c
lib/trunc.c
m4/truncl.m4
Depends-on:
math
extensions
trunc [{ test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
float [{ test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
configure.ac:
gl_FUNC_TRUNCL
if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
AC_LIBOBJ([truncl])
fi
gl_MATH_MODULE_INDICATOR([truncl])
Makefile.am:
Include:
<math.h>
Link:
$(TRUNCL_LIBM)
License:
LGPL
Maintainer:
Bruno Haible