Hash :
a3950b0d
Author :
Date :
2011-10-10T23:35:54
ldexpl: Simplify for platforms where 'long double' == 'double'. * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative implementation. * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
Description:
ldexpl() function: multiply a 'long double' by a power of 2.
Files:
lib/ldexpl.c
m4/ldexpl.m4
Depends-on:
math
ldexp [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
isnanl [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
fpucw [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
configure.ac:
gl_FUNC_LDEXPL
if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
AC_LIBOBJ([ldexpl])
fi
gl_MATH_MODULE_INDICATOR([ldexpl])
Makefile.am:
Include:
<math.h>
Link:
$(LDEXPL_LIBM)
License:
LGPL
Maintainer:
Bruno Haible, Paolo Bonzini