]> git.ipfire.org Git - thirdparty/glibc.git/blob - math/w_asinl.c
Update.
[thirdparty/glibc.git] / math / w_asinl.c
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 */
5
6 /*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 *
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 * ====================================================
15 */
16
17 #if defined(LIBM_SCCS) && !defined(lint)
18 static char rcsid[] = "$NetBSD: $";
19 #endif
20
21 /*
22 * wrapper asinl(x)
23 */
24
25
26 #include "math.h"
27 #include "math_private.h"
28
29
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
36 {
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
48 }
49 weak_alias (__asinl, asinl)