1 /* wf_jn.c -- float version of w_jn.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 * ====================================================
21 float jnf(int n
, float x
) /* wrapper jnf */
23 float jnf(n
,x
) /* wrapper jnf */
32 if(_LIB_VERSION
== _IEEE_
|| isnanf(x
) ) return z
;
33 if(fabsf(x
)>(float)X_TLOSS
) {
34 /* jnf(|x|>X_TLOSS) */
43 float ynf(int n
, float x
) /* wrapper ynf */
45 float ynf(n
,x
) /* wrapper ynf */
54 if(_LIB_VERSION
== _IEEE_
|| isnanf(x
) ) return z
;
56 /* ynf(n,0) = -inf or ynf(x<0) = NaN */
61 SET_HIGH_WORD(inf
,0x7ff00000); /* set inf to infinite */
64 return (float)-HUGE_VAL
;
66 if(x
>(float)X_TLOSS
) {
75 #ifdef _DOUBLE_IS_32BITS
78 double jn(int n
, double x
)
84 return (double) jnf(n
, (float) x
);
88 double yn(int n
, double x
)
94 return (double) ynf(n
, (float) x
);
97 #endif /* defined(_DOUBLE_IS_32BITS) */