Updated to fedora-glibc-20060531T1322
[glibc/history.git] / math / w_asinl.c
blobfb5ee35fc07d94516df7d1726bb79ea0f2a57087
1 /* w_asinl.c -- long double version of w_asin.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
4 */
6 /*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
10 * Developed at SunPro, a Sun Microsystems, Inc. business.
11 * Permission to use, copy, modify, and distribute this
12 * software is freely granted, provided that this notice
13 * is preserved.
14 * ====================================================
17 #if defined(LIBM_SCCS) && !defined(lint)
18 static char rcsid[] = "$NetBSD: $";
19 #endif
22 * wrapper asinl(x)
26 #include <math.h>
27 #include "math_private.h"
30 #ifdef __STDC__
31 long double __asinl(long double x) /* wrapper asinl */
32 #else
33 long double __asinl(x) /* wrapper asinl */
34 long double x;
35 #endif
37 #ifdef _IEEE_LIBM
38 return __ieee754_asinl(x);
39 #else
40 long double z;
41 z = __ieee754_asinl(x);
42 if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z;
43 if(fabsl(x)>1.0) {
44 return __kernel_standard(x,x,202); /* asinl(|x|>1) */
45 } else
46 return z;
47 #endif
49 weak_alias (__asinl, asinl)