1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #if defined(LIBM_SCCS) && !defined(lint)
- static char rcsid[] = "$NetBSD: w_asin.c,v 1.6 1995/05/10 20:48:35 jtc Exp $";
- #endif
- #include "math.h"
- #include "math_private.h"
- #ifdef __STDC__
- double asin(double x)
- #else
- double asin(x)
- double x;
- #endif
- {
- #ifdef _IEEE_LIBM
- return __ieee754_asin(x);
- #else
- double z;
- z = __ieee754_asin(x);
- if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;
- if(fabs(x)>1.0) {
- return __kernel_standard(x,x,2);
- } else
- return z;
- #endif
- }
|