]>
Commit | Line | Data |
---|---|---|
ee188d55 RM |
1 | /* w_j1l.c -- long double version of w_j1.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) | |
18 | static char rcsid[] = "$NetBSD: $"; | |
19 | #endif | |
20 | ||
21 | /* | |
22 | * wrapper of j1l,y1l | |
23 | */ | |
24 | ||
0ecb606c | 25 | #include <math.h> |
ee188d55 RM |
26 | #include "math_private.h" |
27 | ||
28 | #ifdef __STDC__ | |
0ecb606c | 29 | long double __j1l(long double x) /* wrapper j1l */ |
ee188d55 | 30 | #else |
0ecb606c | 31 | long double __j1l(x) /* wrapper j1l */ |
ee188d55 RM |
32 | long double x; |
33 | #endif | |
34 | { | |
35 | #ifdef _IEEE_LIBM | |
36 | return __ieee754_j1l(x); | |
37 | #else | |
38 | long double z; | |
39 | z = __ieee754_j1l(x); | |
40 | if(_LIB_VERSION == _IEEE_ || __isnanl(x) ) return z; | |
41 | if(fabsl(x)>X_TLOSS) { | |
42 | return __kernel_standard(x,x,236); /* j1(|x|>X_TLOSS) */ | |
43 | } else | |
44 | return z; | |
45 | #endif | |
46 | } | |
0ecb606c | 47 | weak_alias (__j1l, j1l) |
ee188d55 RM |
48 | |
49 | #ifdef __STDC__ | |
0ecb606c | 50 | long double __y1l(long double x) /* wrapper y1l */ |
ee188d55 | 51 | #else |
0ecb606c | 52 | long double __y1l(x) /* wrapper y1l */ |
ee188d55 RM |
53 | long double x; |
54 | #endif | |
55 | { | |
56 | #ifdef _IEEE_LIBM | |
57 | return __ieee754_y1l(x); | |
58 | #else | |
59 | long double z; | |
60 | z = __ieee754_y1l(x); | |
61 | if(_LIB_VERSION == _IEEE_ || __isnanl(x) ) return z; | |
62 | if(x <= 0.0){ | |
63 | if(x==0.0) | |
64 | /* d= -one/(x-x); */ | |
65 | return __kernel_standard(x,x,210); | |
66 | else | |
67 | /* d = zero/(x-x); */ | |
68 | return __kernel_standard(x,x,211); | |
69 | } | |
70 | if(x>X_TLOSS) { | |
71 | return __kernel_standard(x,x,237); /* y1(x>X_TLOSS) */ | |
72 | } else | |
73 | return z; | |
74 | #endif | |
75 | } | |
0ecb606c | 76 | weak_alias (__y1l, y1l) |