Mercurial > hg > octave-jordi > gnulib-hg
comparison modules/acosl @ 15943:617d0805c8d8
acosl: Simplify for platforms where 'long double' == 'double'.
* lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
alternative implementation.
* m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
* modules/acosl (Depends-on): Add acos. Update conditions.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 11 Oct 2011 11:15:25 +0200 |
parents | f31b7f55cb96 |
children |
comparison
equal
deleted
inserted
replaced
15942:cfc88a2774f7 | 15943:617d0805c8d8 |
---|---|
6 m4/acosl.m4 | 6 m4/acosl.m4 |
7 | 7 |
8 Depends-on: | 8 Depends-on: |
9 math | 9 math |
10 extensions | 10 extensions |
11 asinl [test $HAVE_ACOSL = 0] | 11 acos [test $HAVE_ACOSL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] |
12 sqrtl [test $HAVE_ACOSL = 0] | 12 asinl [test $HAVE_ACOSL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
13 sqrtl [test $HAVE_ACOSL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
13 | 14 |
14 configure.ac: | 15 configure.ac: |
15 gl_FUNC_ACOSL | 16 gl_FUNC_ACOSL |
16 if test $HAVE_ACOSL = 0; then | 17 if test $HAVE_ACOSL = 0; then |
17 AC_LIBOBJ([acosl]) | 18 AC_LIBOBJ([acosl]) |