Back to index

glibc  2.9
w_asinl.c
Go to the documentation of this file.
00001 /* w_asinl.c -- long double version of w_asin.c.
00002  * Conversion to long double by Ulrich Drepper,
00003  * Cygnus Support, drepper@cygnus.com.
00004  */
00005 
00006 /*
00007  * ====================================================
00008  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
00009  *
00010  * Developed at SunPro, a Sun Microsystems, Inc. business.
00011  * Permission to use, copy, modify, and distribute this
00012  * software is freely granted, provided that this notice
00013  * is preserved.
00014  * ====================================================
00015  */
00016 
00017 #if defined(LIBM_SCCS) && !defined(lint)
00018 static char rcsid[] = "$NetBSD: $";
00019 #endif
00020 
00021 /*
00022  * wrapper asinl(x)
00023  */
00024 
00025 
00026 #include <math.h>
00027 #include "math_private.h"
00028 
00029 
00030 #ifdef __STDC__
00031        long double __asinl(long double x) /* wrapper asinl */
00032 #else
00033        long double __asinl(x)                    /* wrapper asinl */
00034        long double x;
00035 #endif
00036 {
00037 #ifdef _IEEE_LIBM
00038        return __ieee754_asinl(x);
00039 #else
00040        long double z;
00041        z = __ieee754_asinl(x);
00042        if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z;
00043        if(fabsl(x)>1.0) {
00044                return __kernel_standard(x,x,202); /* asinl(|x|>1) */
00045        } else
00046            return z;
00047 #endif
00048 }
00049 weak_alias (__asinl, asinl)