1 /* w_jnf.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 * ====================================================
16 #include <sys/cdefs.h>
17 #if defined(LIBM_SCCS) && !defined(lint)
18 __RCSID("$NetBSD: w_jnf.c,v 1.6 2002/05/26 22:02:02 wiz Exp $");
22 #include "math_private.h"
25 jnf(int n
, float x
) /* wrapper jnf */
28 return __ieee754_jnf(n
,x
);
31 z
= __ieee754_jnf(n
,x
);
32 if(_LIB_VERSION
== _IEEE_
|| isnanf(x
) ) return z
;
33 if(fabsf(x
)>(float)X_TLOSS
) {
34 /* jn(|x|>X_TLOSS,n) */
35 return (float)__kernel_standard((double)n
,(double)x
,138);
42 ynf(int n
, float x
) /* wrapper ynf */
45 return __ieee754_ynf(n
,x
);
48 z
= __ieee754_ynf(n
,x
);
49 if(_LIB_VERSION
== _IEEE_
|| isnanf(x
) ) return z
;
53 return (float)__kernel_standard((double)n
,(double)x
,112);
56 return (float)__kernel_standard((double)n
,(double)x
,113);
58 if(x
>(float)X_TLOSS
) {
60 return (float)__kernel_standard((double)n
,(double)x
,139);