Remove building with NOCRYPTO option
[minix3.git] / lib / libm / src / w_j0f.c
blobd7798d2997c4fa36c2d54c780fe1bf062a04a0df
1 /* w_j0f.c -- float version of w_j0.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
3 */
5 /*
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
12 * is preserved.
13 * ====================================================
16 #include <sys/cdefs.h>
17 #if defined(LIBM_SCCS) && !defined(lint)
18 __RCSID("$NetBSD: w_j0f.c,v 1.6 2002/05/26 22:02:01 wiz Exp $");
19 #endif
22 * wrapper j0f(float x), y0f(float x)
25 #include "math.h"
26 #include "math_private.h"
28 float
29 j0f(float x) /* wrapper j0f */
31 #ifdef _IEEE_LIBM
32 return __ieee754_j0f(x);
33 #else
34 float z = __ieee754_j0f(x);
35 if(_LIB_VERSION == _IEEE_ || isnanf(x)) return z;
36 if(fabsf(x)>(float)X_TLOSS) {
37 /* j0f(|x|>X_TLOSS) */
38 return (float)__kernel_standard((double)x,(double)x,134);
39 } else
40 return z;
41 #endif
44 float
45 y0f(float x) /* wrapper y0f */
47 #ifdef _IEEE_LIBM
48 return __ieee754_y0f(x);
49 #else
50 float z;
51 z = __ieee754_y0f(x);
52 if(_LIB_VERSION == _IEEE_ || isnanf(x) ) return z;
53 if(x <= (float)0.0){
54 if(x==(float)0.0)
55 /* d= -one/(x-x); */
56 return (float)__kernel_standard((double)x,(double)x,108);
57 else
58 /* d = zero/(x-x); */
59 return (float)__kernel_standard((double)x,(double)x,109);
61 if(x>(float)X_TLOSS) {
62 /* y0(x>X_TLOSS) */
63 return (float)__kernel_standard((double)x,(double)x,135);
64 } else
65 return z;
66 #endif