summaryrefslogtreecommitdiff
path: root/modules/ldexpl
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-10 23:35:54 +0200
committerBruno Haible <bruno@clisp.org>2011-10-10 23:35:54 +0200
commita3950b0d4237539d2e163b28b6a2197f92790ba0 (patch)
tree7de1667865209c2ba3e2c0ebe56f59f0dc174985 /modules/ldexpl
parentf11a213a4e8dd404e90d2084a21e2746093747c4 (diff)
downloadgnulib-a3950b0d4237539d2e163b28b6a2197f92790ba0.tar.gz
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.
Diffstat (limited to 'modules/ldexpl')
-rw-r--r--modules/ldexpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/ldexpl b/modules/ldexpl
index b6d3117343..35e52ab0ce 100644
--- a/modules/ldexpl
+++ b/modules/ldexpl
@@ -7,8 +7,9 @@ m4/ldexpl.m4
Depends-on:
math
-isnanl [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no]
-fpucw [test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no]
+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