Mercurial > hg > octave-kai > gnulib-hg
diff lib/asinl.c @ 15942:cfc88a2774f7
asinl: Simplify for platforms where 'long double' == 'double'.
* lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
alternative implementation.
* m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
* modules/asinl (Depends-on): Add asin. Update conditions.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 11 Oct 2011 11:13:24 +0200 |
parents | 094f6cfdb5c3 |
children | 2074f2bf7216 |
line wrap: on
line diff
--- a/lib/asinl.c +++ b/lib/asinl.c @@ -14,6 +14,16 @@ /* Specification. */ #include <math.h> +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +long double +asinl (long double x) +{ + return asin (x); +} + +#else + /* Long double expansions contributed by Stephen L. Moshier <moshier@na-net.ornl.gov> @@ -188,6 +198,8 @@ return t * sign; } +#endif + #if 0 int main (void)