long double math fixes for LD64
[libm] / test / io / ucb / atan2d.input
1 /* Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue */
2 /* Mountain View, California  94043 All rights reserved. */
3 /*  */
4 /* Any person is hereby authorized to download, copy, use, create bug fixes,  */
5 /* and distribute, subject to the following conditions: */
6 /*  */
7 /*      1.  the software may not be redistributed for a fee except as */
8 /*          reasonable to cover media costs; */
9 /*      2.  any copy of the software must include this notice, as well as  */
10 /*          any other embedded copyright notices; and  */
11 /*      3.  any distribution of this software or derivative works thereof  */
12 /*          must comply with all applicable U.S. export control laws. */
13 /*  */
14 /* THE SOFTWARE IS MADE AVAILABLE "AS IS" AND WITHOUT EXPRESS OR IMPLIED */
15 /* WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE IMPLIED */
16 /* WARRANTIES OF DESIGN, MERCHANTIBILITY, FITNESS FOR A PARTICULAR */
17 /* PURPOSE, NON-INFRINGEMENT, PERFORMANCE OR CONFORMANCE TO */
18 /* SPECIFICATIONS.   */
19 /*  */
20 /* BY DOWNLOADING AND/OR USING THIS SOFTWARE, THE USER WAIVES ALL CLAIMS */
21 /* AGAINST SUN MICROSYSTEMS, INC. AND ITS AFFILIATED COMPANIES IN ANY */
22 /* JURISDICTION, INCLUDING BUT NOT LIMITED TO CLAIMS FOR DAMAGES OR */
23 /* EQUITABLE RELIEF BASED ON LOSS OF DATA, AND SPECIFICALLY WAIVES EVEN */
24 /* UNKNOWN OR UNANTICIPATED CLAIMS OR LOSSES, PRESENT AND FUTURE. */
25 /*  */
26 /* IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS AFFILIATED */
27 /* COMPANIES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, */
28 /* INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF IT HAS BEEN ADVISED OF THE */
29 /* POSSIBILITY OF SUCH DAMAGES. */
30 /*  */
31 /* This file is provided with no support and without any obligation on the */
32 /* part of Sun Microsystems, Inc. ("Sun") or any of its affiliated */
33 /* companies to assist in its use, correction, modification or */
34 /* enhancement.  Nevertheless, and without creating any obligation on its */
35 /* part, Sun welcomes your comments concerning the software and requests */
36 /* that they be sent to fdlibm-comments@sunpro.sun.com. */
37
38         /* atan2d(+-0,+anything but nan) is +-0 */
39 atan2d n eq - 0 0 0 0 0 0
40 atan2d n eq - 0 0 0 1 0 0
41 atan2d n eq - 0 0 00100000 0 0 0
42 atan2d n eq - 0 0 7fefffff ffffffff 0 0
43 atan2d n eq - 0 0 7ff00000 0 0 0
44 atan2d n eq - 80000000 0 0 0 80000000 0
45 atan2d n eq - 80000000 0 0 1 80000000 0
46 atan2d n eq - 80000000 0 00100000 0 80000000 0
47 atan2d n eq - 80000000 0 7fefffff ffffffff 80000000 0
48 atan2d n eq - 80000000 0 7ff00000 0 80000000 0
49 atan2d z eq - 0 0 0 0 0 0
50 atan2d z eq - 0 0 0 1 0 0
51 atan2d z eq - 0 0 00100000 0 0 0
52 atan2d z eq - 0 0 7fefffff ffffffff 0 0
53 atan2d z eq - 0 0 7ff00000 0 0 0
54 atan2d z eq - 80000000 0 0 0 80000000 0
55 atan2d z eq - 80000000 0 0 1 80000000 0
56 atan2d z eq - 80000000 0 00100000 0 80000000 0
57 atan2d z eq - 80000000 0 7fefffff ffffffff 80000000 0
58 atan2d z eq - 80000000 0 7ff00000 0 80000000 0
59 atan2d p eq - 0 0 0 0 0 0
60 atan2d p eq - 0 0 0 1 0 0
61 atan2d p eq - 0 0 00100000 0 0 0
62 atan2d p eq - 0 0 7fefffff ffffffff 0 0
63 atan2d p eq - 0 0 7ff00000 0 0 0
64 atan2d p eq - 80000000 0 0 0 80000000 0
65 atan2d p eq - 80000000 0 0 1 80000000 0
66 atan2d p eq - 80000000 0 00100000 0 80000000 0
67 atan2d p eq - 80000000 0 7fefffff ffffffff 80000000 0
68 atan2d p eq - 80000000 0 7ff00000 0 80000000 0
69 atan2d m eq - 0 0 0 0 0 0
70 atan2d m eq - 0 0 0 1 0 0
71 atan2d m eq - 0 0 00100000 0 0 0
72 atan2d m eq - 0 0 7fefffff ffffffff 0 0
73 atan2d m eq - 0 0 7ff00000 0 0 0
74 atan2d m eq - 80000000 0 0 0 80000000 0
75 atan2d m eq - 80000000 0 0 1 80000000 0
76 atan2d m eq - 80000000 0 00100000 0 80000000 0
77 atan2d m eq - 80000000 0 7fefffff ffffffff 80000000 0
78 atan2d m eq - 80000000 0 7ff00000 0 80000000 0
79         /* atan2d(+-0,-anything but nan) is +-pi */
80 atan2d n eq ?x 0 0 fff00000 0 400921fb 54442d18
81 atan2d n eq ?x 0 0 ffefffff ffffffff 400921fb 54442d18
82 atan2d n eq ?x 0 0 80100000 0 400921fb 54442d18
83 atan2d n eq ?x 0 0 80000000 1 400921fb 54442d18
84 atan2d n eq ?x 0 0 80000000 0 400921fb 54442d18
85 atan2d n eq ?x 80000000 0 fff00000 0 c00921fb 54442d18
86 atan2d n eq ?x 80000000 0 ffefffff ffffffff c00921fb 54442d18
87 atan2d n eq ?x 80000000 0 80100000 0 c00921fb 54442d18
88 atan2d n eq ?x 80000000 0 80000000 1 c00921fb 54442d18
89 atan2d n eq ?x 80000000 0 80000000 0 c00921fb 54442d18
90         /*  atan2d(+-anything but 0 and nan, 0) is +- pi/2 */
91 atan2d n eq ?x 7ff00000 0 0 0 3ff921fb 54442d18
92 atan2d n eq ?x 7ff00000 0 80000000 0 3ff921fb 54442d18
93 atan2d n eq ?x 7fefffff ffffffff 0 0 3ff921fb 54442d18
94 atan2d n eq ?x 7fefffff ffffffff 80000000 0 3ff921fb 54442d18
95 atan2d n eq ?x 00100000 0 0 0 3ff921fb 54442d18
96 atan2d n eq ?x 00100000 0 80000000 0 3ff921fb 54442d18
97 atan2d n eq ?x 0 1 0 0 3ff921fb 54442d18
98 atan2d n eq ?x 0 1 80000000 0 3ff921fb 54442d18
99 atan2d n eq ?x fff00000 0 0 0 bff921fb 54442d18
100 atan2d n eq ?x fff00000 0 80000000 0 bff921fb 54442d18
101 atan2d n eq ?x ffefffff ffffffff 0 0 bff921fb 54442d18
102 atan2d n eq ?x ffefffff ffffffff 80000000 0 bff921fb 54442d18
103 atan2d n eq ?x 80000000 1 0 0 bff921fb 54442d18
104 atan2d n eq ?x 80000000 1 80000000 0 bff921fb 54442d18
105 atan2d n eq ?x 80100000 0 0 0 bff921fb 54442d18
106 atan2d n eq ?x 80100000 0 80000000 0 bff921fb 54442d18
107         /* atan2d(big,small) :=: +-pi/2  */
108 atan2d n vn x 7fefffff ffffffff 00100000 0 3ff921fb 54442d18
109 atan2d n vn x 7fefffff ffffffff 80100000 0 3ff921fb 54442d18
110 atan2d n vn x ffefffff ffffffff 00100000 0 bff921fb 54442d18
111 atan2d n vn x ffefffff ffffffff 80100000 0 bff921fb 54442d18
112 atan2d z vn x 7fefffff ffffffff 00100000 0 3ff921fb 54442d18
113 atan2d z vn x 7fefffff ffffffff 80100000 0 3ff921fb 54442d18
114 atan2d z vn x ffefffff ffffffff 00100000 0 bff921fb 54442d18
115 atan2d z vn x ffefffff ffffffff 80100000 0 bff921fb 54442d18
116 atan2d p vn x 7fefffff ffffffff 00100000 0 3ff921fb 54442d18
117 atan2d p vn x 7fefffff ffffffff 80100000 0 3ff921fb 54442d18
118 atan2d p vn x ffefffff ffffffff 00100000 0 bff921fb 54442d18
119 atan2d p vn x ffefffff ffffffff 80100000 0 bff921fb 54442d18
120 atan2d m vn x 7fefffff ffffffff 00100000 0 3ff921fb 54442d18
121 atan2d m vn x 7fefffff ffffffff 80100000 0 3ff921fb 54442d18
122 atan2d m vn x ffefffff ffffffff 00100000 0 bff921fb 54442d18
123 atan2d m vn x ffefffff ffffffff 80100000 0 bff921fb 54442d18
124         /* atan2d(small,big) = small/big (big>0) 
125            else sign(small)(pi - |small/big|) */
126 atan2d n eq ux 00100000 0 7fefffff ffffffff 0 0
127 atan2d n eq ux 80100000 0 7fefffff ffffffff 80000000 0
128 atan2d n vn x  00100000 0 ffefffff ffffffff 400921fb 54442d18
129 atan2d n vn x  80100000 0 ffefffff ffffffff c00921fb 54442d18
130 atan2d z eq ux 00100000 0 7fefffff ffffffff 0 0
131 atan2d z eq ux 80100000 0 7fefffff ffffffff 80000000 0
132 atan2d z vn x  00100000 0 ffefffff ffffffff 400921fb 54442d18
133 atan2d z vn x  80100000 0 ffefffff ffffffff c00921fb 54442d18
134 atan2d p vn ux 00100000 0 7fefffff ffffffff 0 1
135 atan2d p vn ux 80100000 0 7fefffff ffffffff 80000000 0
136 atan2d p vn x  00100000 0 ffefffff ffffffff 400921fb 54442d18
137 atan2d p vn x  80100000 0 ffefffff ffffffff c00921fb 54442d18
138 atan2d m vn ux 00100000 0 7fefffff ffffffff 0 0
139 atan2d m vn ux 80100000 0 7fefffff ffffffff 80000000 0
140 atan2d m vn x  00100000 0 ffefffff ffffffff 400921fb 54442d18
141 atan2d m vn x  80100000 0 ffefffff ffffffff c00921fb 54442d18
142         /* atan2d(+-x,+x) = +-pi/4 for normal x */
143 atan2d n eq x 00100000 0 00100000 0 3fe921fb 54442d18
144 atan2d n eq x 80100000 0 00100000 0 bfe921fb 54442d18
145 atan2d n eq x 7fefffff ffffffff 7fefffff ffffffff 3fe921fb 54442d18
146 atan2d n eq x ffefffff ffffffff 7fefffff ffffffff bfe921fb 54442d18
147         /* atan2d(+-x,-x) = +-3pi/4 for normal x */
148 atan2d n eq x 00100000 0 80100000 0 4002d97c 7f3321d2
149 atan2d n eq x 80100000 0 80100000 0 c002d97c 7f3321d2
150 atan2d n eq x 3ff00000 0 bff00000 0 4002d97c 7f3321d2
151 atan2d n eq x bff00000 0 bff00000 0 c002d97c 7f3321d2
152 atan2d n eq x 7fefffff ffffffff ffefffff ffffffff 4002d97c 7f3321d2
153 atan2d n eq x ffefffff ffffffff ffefffff ffffffff c002d97c 7f3321d2
154         /* random arguments between -2.0 and 2.0 */
155 atan2d n vn x bfe13284 b2b5006d 3ff6ca8d fb825911 bfd716d1 fa13dd60
156 atan2d n vn x 3ffc2ca6 09de7505 bff55f11 fba96889 4001c206 d50867f2
157 atan2d n vn x bfe15679 e27084dd bfb41e13 1b093c41 bffb6ff4 3cc0fa04
158 atan2d n vn x 3ff281b0 d18455f5 3ffb5ce3 4a51b239 3fe30789 aa67a7b0
159 atan2d n vn x bfd58348 1079de4d bffea822 3103b871 c007be50 87e43d19
160 atan2d n vn x bfeaae17 f24163e5 3fb7a9da 1468cce9 bff75db7 c098be46
161 atan2d n vn x bff844ff f258fcbd 3ff6ca32 1ace7da1 bfea237b 131b62af
162 atan2d n vn x bfffe09b efde0ed5 bffff6c7 e8e5e899 c002dc43 c18871b1
163 atan2d n vn x bfed24c8 1412d02d 3ff29b68 28273bd1 bfe5428a 1a6caecf
164 atan2d n vn x 3fe25ea7 e8b7c6c5 3fef9959 8e193549 3fe0d9c9 60b4dda9
165         /* atan2d involve nan  */
166 atan2d n uo v 0 0 7ff00000 00000001 0 0
167 atan2d n uo - 3ff00000 0 fff80000 0 0 0
168 atan2d n uo v 7ff00000 1 00000000 1 0 0
169 atan2d n uo - 7ff80000 0 ffefffff ffffffff 0 0
170 atan2d n uo v 7ff80000 0 fff00000 1 0 0
171 atan2d n uo - fff80000 0 fff80000 0 0 0
172 atan2d z uo v 0 0 7ff00000 00000001 0 0
173 atan2d z uo - 3ff00000 0 fff80000 0 0 0
174 atan2d z uo v 7ff00000 1 00000000 1 0 0
175 atan2d z uo - 7ff80000 0 ffefffff ffffffff 0 0
176 atan2d z uo v 7ff80000 0 fff00000 1 0 0
177 atan2d z uo - fff80000 0 fff80000 0 0 0
178 atan2d p uo v 0 0 7ff00000 00000001 0 0
179 atan2d p uo - 3ff00000 0 fff80000 0 0 0
180 atan2d p uo v 7ff00000 1 00000000 1 0 0
181 atan2d p uo - 7ff80000 0 ffefffff ffffffff 0 0
182 atan2d p uo v 7ff80000 0 fff00000 1 0 0
183 atan2d p uo - fff80000 0 fff80000 0 0 0
184 atan2d m uo v 0 0 7ff00000 00000001 0 0
185 atan2d m uo - 3ff00000 0 fff80000 0 0 0
186 atan2d m uo v 7ff00000 1 00000000 1 0 0
187 atan2d m uo - 7ff80000 0 ffefffff ffffffff 0 0
188 atan2d m uo v 7ff80000 0 fff00000 1 0 0
189 atan2d m uo - fff80000 0 fff80000 0 0 0
190         /*  atan2d(+-(anything but inf and nan), +inf) is +-0 */
191 atan2d n eq - 0 0 7ff00000 0 0 0
192 atan2d n eq - 0 1 7ff00000 0 0 0
193 atan2d n eq - 7fefffff ffffffff 7ff00000 0 0 0
194 atan2d n eq - 80000000 0 7ff00000 0 80000000 0
195 atan2d n eq - 80000000 1 7ff00000 0 80000000 0
196 atan2d n eq - ffefffff ffffffff 7ff00000 0 80000000 0
197 atan2d z eq - 0 0 7ff00000 0 0 0
198 atan2d z eq - 0 1 7ff00000 0 0 0
199 atan2d z eq - 7fefffff ffffffff 7ff00000 0 0 0
200 atan2d z eq - 80000000 0 7ff00000 0 80000000 0
201 atan2d z eq - 80000000 1 7ff00000 0 80000000 0
202 atan2d z eq - ffefffff ffffffff 7ff00000 0 80000000 0
203 atan2d p eq - 0 0 7ff00000 0 0 0
204 atan2d p eq - 0 1 7ff00000 0 0 0
205 atan2d p eq - 7fefffff ffffffff 7ff00000 0 0 0
206 atan2d p eq - 80000000 0 7ff00000 0 80000000 0
207 atan2d p eq - 80000000 1 7ff00000 0 80000000 0
208 atan2d p eq - ffefffff ffffffff 7ff00000 0 80000000 0
209 atan2d m eq - 0 0 7ff00000 0 0 0
210 atan2d m eq - 0 1 7ff00000 0 0 0
211 atan2d m eq - 7fefffff ffffffff 7ff00000 0 0 0
212 atan2d m eq - 80000000 0 7ff00000 0 80000000 0
213 atan2d m eq - 80000000 1 7ff00000 0 80000000 0
214 atan2d m eq - ffefffff ffffffff 7ff00000 0 80000000 0
215         /*  atan2d(+-(anything but inf and nan), -inf) is +-pi */
216 atan2d n eq ?x 0 0 fff00000 0 400921fb 54442d18
217 atan2d n eq ?x 0 1 fff00000 0 400921fb 54442d18
218 atan2d n eq ?x 7fefffff ffffffff fff00000 0 400921fb 54442d18
219 atan2d n eq ?x 80000000 0 fff00000 0 c00921fb 54442d18
220 atan2d n eq ?x 80000000 1 fff00000 0 c00921fb 54442d18
221 atan2d n eq ?x ffefffff ffffffff fff00000 0 c00921fb 54442d18
222         /*  atan2d(+-inf,+inf ) is +-pi/4 */
223 atan2d n eq ?x 7ff00000 0 7ff00000 0 3fe921fb 54442d18
224 atan2d n eq ?x fff00000 0 7ff00000 0 bfe921fb 54442d18
225         /*  atan2d(+-inf,-inf ) is +-3pi/4 */
226 atan2d n eq ?x 7ff00000 0 fff00000 0 4002d97c 7f3321d2
227 atan2d n eq ?x fff00000 0 fff00000 0 c002d97c 7f3321d2
228         /*  atan2d(+-inf, (anything but,0,nan, and inf)) is +-pi/2 */
229 atan2d n eq ?x 7ff00000 0 0 1 3ff921fb 54442d18
230 atan2d n eq ?x 7ff00000 0 80000000 1 3ff921fb 54442d18
231 atan2d n eq ?x 7ff00000 0 7fefffff ffffffff 3ff921fb 54442d18
232 atan2d n eq ?x 7ff00000 0 ffefffff ffffffff 3ff921fb 54442d18
233 atan2d n eq ?x fff00000 0 0 1 bff921fb 54442d18
234 atan2d n eq ?x fff00000 0 80000000 1 bff921fb 54442d18
235 atan2d n eq ?x fff00000 0 7fefffff ffffffff bff921fb 54442d18
236 atan2d n eq ?x fff00000 0 ffefffff ffffffff bff921fb 54442d18
237 atan2d m uo - 3ff00000 00000000 fff80000 00000000 00000000 00000000
238 atan2d m uo - 7ff80000 00000000 ffefffff ffffffff 00000000 00000000
239 atan2d m uo - fff80000 00000000 fff80000 00000000 00000000 00000000
240 atan2d m uo v 00000000 00000000 7ff00000 00000001 00000000 00000000
241 atan2d m uo v 7ff00000 00000001 00000000 00000001 00000000 00000000
242 atan2d m uo v 7ff80000 00000000 fff00000 00000001 00000000 00000000
243 atan2d m vn x 00100000 00000000 ffefffff ffffffff 400921fb 54442d18
244 atan2d m vn x 80100000 00000000 ffefffff ffffffff c00921fb 54442d18
245 atan2d m vn xu 00100000 00000000 7fefffff ffffffff 00000000 00000000
246 atan2d m vn xu 80100000 00000000 7fefffff ffffffff 80000000 00000000
247 atan2d n eq xu 00100000 00000000 7fefffff ffffffff 00000000 00000000
248 atan2d n eq xu 80100000 00000000 7fefffff ffffffff 80000000 00000000
249 atan2d n uo - 3ff00000 00000000 fff80000 00000000 00000000 00000000
250 atan2d n uo - 7ff80000 00000000 ffefffff ffffffff 00000000 00000000
251 atan2d n uo - fff80000 00000000 fff80000 00000000 00000000 00000000
252 atan2d n uo v 00000000 00000000 7ff00000 00000001 00000000 00000000
253 atan2d n uo v 7ff00000 00000001 00000000 00000001 00000000 00000000
254 atan2d n uo v 7ff80000 00000000 fff00000 00000001 00000000 00000000
255 atan2d n vn x 00100000 00000000 ffefffff ffffffff 400921fb 54442d18
256 atan2d n vn x 80100000 00000000 ffefffff ffffffff c00921fb 54442d18
257 atan2d p uo - 3ff00000 00000000 fff80000 00000000 00000000 00000000
258 atan2d p uo - 7ff80000 00000000 ffefffff ffffffff 00000000 00000000
259 atan2d p uo - fff80000 00000000 fff80000 00000000 00000000 00000000
260 atan2d p uo v 00000000 00000000 7ff00000 00000001 00000000 00000000
261 atan2d p uo v 7ff00000 00000001 00000000 00000001 00000000 00000000
262 atan2d p uo v 7ff80000 00000000 fff00000 00000001 00000000 00000000
263 atan2d p vn x 00100000 00000000 ffefffff ffffffff 400921fb 54442d18
264 atan2d p vn x 80100000 00000000 ffefffff ffffffff c00921fb 54442d18
265 atan2d p vn xu 00100000 00000000 7fefffff ffffffff 00000000 00000001
266 atan2d p vn xu 80100000 00000000 7fefffff ffffffff 80000000 00000000
267 atan2d z eq xu 00100000 00000000 7fefffff ffffffff 00000000 00000000
268 atan2d z eq xu 80100000 00000000 7fefffff ffffffff 80000000 00000000
269 atan2d z uo - 3ff00000 00000000 fff80000 00000000 00000000 00000000
270 atan2d z uo - 7ff80000 00000000 ffefffff ffffffff 00000000 00000000
271 atan2d z uo - fff80000 00000000 fff80000 00000000 00000000 00000000
272 atan2d z uo v 00000000 00000000 7ff00000 00000001 00000000 00000000
273 atan2d z uo v 7ff00000 00000001 00000000 00000001 00000000 00000000
274 atan2d z uo v 7ff80000 00000000 fff00000 00000001 00000000 00000000
275 atan2d z vn x 00100000 00000000 ffefffff ffffffff 400921fb 54442d18
276 atan2d z vn x 80100000 00000000 ffefffff ffffffff c00921fb 54442d18