1 /* wf_asin.c -- float version of w_asin.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
6 * ====================================================
7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 * Developed at SunPro, a Sun Microsystems, Inc. business.
10 * Permission to use, copy, modify, and distribute this
11 * software is freely granted, provided that this notice
13 * ====================================================
26 float asinf(float x
) /* wrapper asinf */
28 float asinf(x
) /* wrapper asinf */
33 return __ieee754_asinf(x
);
37 z
= __ieee754_asinf(x
);
38 if(_LIB_VERSION
== _IEEE_
|| isnanf(x
)) return z
;
39 if(fabsf(x
)>(float)1.0) {
44 exc
.arg1
= exc
.arg2
= (double)x
;
46 if(_LIB_VERSION
== _POSIX_
)
48 else if (!matherr(&exc
)) {
53 return (float)exc
.retval
;
59 #ifdef _DOUBLE_IS_32BITS
68 return (double) asinf((float) x
);
71 #endif /* defined(_DOUBLE_IS_32BITS) */