1 /* @(#)w_j0.c 5.1 93/09/24 */
3 * ====================================================
4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
6 * Developed at SunPro, a Sun Microsystems, Inc. business.
7 * Permission to use, copy, modify, and distribute this
8 * software is freely granted, provided that this notice
10 * ====================================================
13 #include <sys/cdefs.h>
14 #if defined(LIBM_SCCS) && !defined(lint)
15 __RCSID("$NetBSD: w_j0.c,v 1.9 2002/05/26 22:02:01 wiz Exp $");
19 * wrapper j0(double x), y0(double x)
23 #include "math_private.h"
26 j0(double x
) /* wrapper j0 */
29 return __ieee754_j0(x
);
31 double z
= __ieee754_j0(x
);
32 if(_LIB_VERSION
== _IEEE_
|| isnan(x
)) return z
;
34 return __kernel_standard(x
,x
,34); /* j0(|x|>X_TLOSS) */
41 y0(double x
) /* wrapper y0 */
44 return __ieee754_y0(x
);
48 if(_LIB_VERSION
== _IEEE_
|| isnan(x
) ) return z
;
52 return __kernel_standard(x
,x
,8);
55 return __kernel_standard(x
,x
,9);
58 return __kernel_standard(x
,x
,35); /* y0(x>X_TLOSS) */