]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/libm-ieee754/w_j0l.c
Tue Jun 4 21:01:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[thirdparty/glibc.git] / sysdeps / libm-ieee754 / w_j0l.c
CommitLineData
ee188d55
RM
1/* w_j0l.c -- long double version of w_j0.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
4 */
5
6/*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 *
10 * Developed at SunPro, a Sun Microsystems, Inc. business.
11 * Permission to use, copy, modify, and distribute this
12 * software is freely granted, provided that this notice
13 * is preserved.
14 * ====================================================
15 */
16
17#if defined(LIBM_SCCS) && !defined(lint)
18static char rcsid[] = "$NetBSD: $";
19#endif
20
21/*
22 * wrapper j0l(long double x), y0l(long double x)
23 */
24
25#include "math.h"
26#include "math_private.h"
27
28#ifdef __STDC__
29 long double __j0l(long double x) /* wrapper j0l */
30#else
31 long double __j0l(x) /* wrapper j0 */
32 long double x;
33#endif
34{
35#ifdef _IEEE_LIBM
36 return __ieee754_j0l(x);
37#else
38 long double z = __ieee754_j0l(x);
39 if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z;
40 if(fabsl(x)>X_TLOSS) {
41 return __kernel_standard(x,x,234); /* j0(|x|>X_TLOSS) */
42 } else
43 return z;
44#endif
45}
46weak_alias (__j0l, j0l)
47
48#ifdef __STDC__
49 long double __y0l(long double x) /* wrapper y0l */
50#else
51 long double __y0l(x) /* wrapper y0 */
52 long double x;
53#endif
54{
55#ifdef _IEEE_LIBM
56 return __ieee754_y0l(x);
57#else
58 long double z;
59 z = __ieee754_y0l(x);
60 if(_LIB_VERSION == _IEEE_ || __isnanl(x) ) return z;
61 if(x <= 0.0){
62 if(x==0.0)
63 /* d= -one/(x-x); */
64 return __kernel_standard(x,x,208);
65 else
66 /* d = zero/(x-x); */
67 return __kernel_standard(x,x,209);
68 }
69 if(x>X_TLOSS) {
70 return __kernel_standard(x,x,235); /* y0(x>X_TLOSS) */
71 } else
72 return z;
73#endif
74}
75weak_alias (__y0l, y0l)