fgetwc may clobber errno when the result is not WEOF
[libc-test.git] / src / math / ucb / log.h
blobfa37c9ab69ee0b87353b93e67e8cae32961c13be
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.
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.
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.
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.
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 // logd(+fmax) is finite
38 T(RN, 0x1.fffffffffffffp+1023, 0x1.62e42fefa39efp+9, -0x1.a9c9e4p-3, INEXACT)
39 T(RZ, 0x1.fffffffffffffp+1023, 0x1.62e42fefa39efp+9, -0x1.a9c9e4p-3, INEXACT)
40 T(RU, 0x1.fffffffffffffp+1023, 0x1.62e42fefa39fp+9, 0x1.958d88p-1, INEXACT)
41 T(RD, 0x1.fffffffffffffp+1023, 0x1.62e42fefa39efp+9, -0x1.a9c9e4p-3, INEXACT)
42 // logd(1+tiny) is tiny - tiny*tiny/2
43 T(RN, 0x1.000000000002p+0, 0x1.fffffffffffep-48, -0x1.555556p-43, INEXACT)
44 T(RN, 0x1p+0, 0x0p+0, 0x0p+0, 0)
45 T(RN, 0x1.fffffffffffcp-1, -0x1.000000000001p-47, 0x1.555556p-44, INEXACT)
46 T(RZ, 0x1.000000000002p+0, 0x1.fffffffffffep-48, -0x1.555556p-43, INEXACT)
47 T(RZ, 0x1p+0, 0x0p+0, 0x0p+0, 0)
48 T(RZ, 0x1.fffffffffffcp-1, -0x1.000000000001p-47, 0x1.555556p-44, INEXACT)
49 T(RU, 0x1.000000000002p+0, 0x1.fffffffffffe1p-48, 0x1p+0, INEXACT)
50 T(RU, 0x1p+0, 0x0p+0, 0x0p+0, 0)
51 T(RU, 0x1.fffffffffffcp-1, -0x1.000000000001p-47, 0x1.555556p-44, INEXACT)
52 T(RD, 0x1.000000000002p+0, 0x1.fffffffffffep-48, -0x1.555556p-43, INEXACT)
53 T(RD, 0x1p+0, 0x0p+0, 0x0p+0, 0)
54 T(RD, 0x1.fffffffffffcp-1, -0x1.0000000000011p-47, -0x1p+0, INEXACT)
55 // logd(min) is finite
56 T(RN, 0x1p-1022, -0x1.6232bdd7abcd2p+9, 0x1.eef3fep-3, INEXACT)
57 T(RN, 0x1p-1074, -0x1.74385446d71c3p+9, 0x1.8e56ap-2, INEXACT)
58 T(RZ, 0x1p-1022, -0x1.6232bdd7abcd2p+9, 0x1.eef3fep-3, INEXACT)
59 T(RZ, 0x1p-1074, -0x1.74385446d71c3p+9, 0x1.8e56ap-2, INEXACT)
60 T(RU, 0x1p-1022, -0x1.6232bdd7abcd2p+9, 0x1.eef3fep-3, INEXACT)
61 T(RU, 0x1p-1074, -0x1.74385446d71c3p+9, 0x1.8e56ap-2, INEXACT)
62 T(RD, 0x1p-1022, -0x1.6232bdd7abcd3p+9, -0x1.8443p-1, INEXACT)
63 T(RD, 0x1p-1074, -0x1.74385446d71c4p+9, -0x1.38d4bp-1, INEXACT)
64 // random arguments between 0 100
65 T(RN, 0x1.24844b2b5006dp+5, 0x1.ccaeab2b2d17ap+1, 0x1.fc0214p-2, INEXACT)
66 T(RN, 0x1.5671ffb825911p+6, 0x1.1cc9cfc21200ep+2, 0x1.576484p-6, INEXACT)
67 T(RN, 0x1.7817009de7505p+6, 0x1.22c941ad2cdcbp+2, 0x1.ffd6e6p-3, INEXACT)
68 T(RN, 0x1.09b74fba96889p+4, 0x1.67a8d2baa9eaep+1, 0x1.410c98p-7, INEXACT)
69 T(RN, 0x1.23a38e27084ddp+5, 0x1.cc4c2deae0fd6p+1, -0x1.ec3806p-3, INEXACT)
70 T(RN, 0x1.804881b093c41p+5, 0x1.ef9bacb80ecaap+1, -0x1.717e9cp-2, INEXACT)
71 T(RN, 0x1.3baa8d18455f5p+6, 0x1.1793b7e741d95p+2, -0x1.343a7cp-2, INEXACT)
72 T(RN, 0x1.730484a51b239p+6, 0x1.21eac9842b049p+2, -0x1.bd7ec6p-3, INEXACT)
73 T(RN, 0x1.4cc5b1079de4dp+5, 0x1.dd2fa6f2757b8p+1, 0x1.39a05p-2, INEXACT)
74 T(RN, 0x1.0ca4d3103b871p+1, 0x1.7b930bafa9c1dp-1, -0x1.00835p-3, INEXACT)
75 // logd(nan) is nan
76 T(RN, nan, nan, 0x0p+0, 0)
77 // logd(+inf) is inf
78 T(RN, inf, inf, 0x0p+0, 0)
79 // logd(+-0) is -inf
80 T(RN, 0x0p+0, -inf, 0x0p+0, DIVBYZERO)
81 T(RN, -0x0p+0, -inf, 0x0p+0, DIVBYZERO)
82 // logd(-ve) is nan
83 T(RN, -0x1p-1074, nan, 0x0p+0, INVALID)
84 T(RN, -0x1p-1022, nan, 0x0p+0, INVALID)
85 T(RN,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID)
86 T(RN, -inf, nan, 0x0p+0, INVALID)
87 T(RD, inf, inf, 0x0p+0, 0)
88 T(RD, 0x0p+0, -inf, 0x0p+0, DIVBYZERO)
89 T(RD, -0x0p+0, -inf, 0x0p+0, DIVBYZERO)
90 T(RD, 0x1.ffffffffffffcp-1, -0x1.0000000000002p-51, -0x1p+0, INEXACT)
91 T(RD, 0x1.ffffffffffffdp-1, -0x1.8000000000002p-52, -0x1.cp-1, INEXACT)
92 T(RD, 0x1.ffffffffffffep-1, -0x1.0000000000001p-52, -0x1p-1, INEXACT)
93 T(RD, 0x1.fffffffffffffp-1, -0x1.0000000000001p-53, -0x1.8p-1, INEXACT)
94 T(RD, 0x1.0000000000001p+0, 0x1.fffffffffffffp-53, -0x1.555554p-53, INEXACT)
95 T(RD, 0x1.0000000000002p+0, 0x1.ffffffffffffep-52, -0x1.555554p-51, INEXACT)
96 T(RD, 0x1.0000000000004p+0, 0x1.ffffffffffffcp-51, -0x1.555556p-49, INEXACT)
97 T(RD, nan, nan, 0x0p+0, 0)
98 T(RD, nan, nan, 0x0p+0, 0)
99 T(RD, -0x1p-1074, nan, 0x0p+0, INVALID)
100 T(RD, -0x1p-1073, nan, 0x0p+0, INVALID)
101 T(RD, -0x1.cp-1072, nan, 0x0p+0, INVALID)
102 T(RD, -0x1p-1024, nan, 0x0p+0, INVALID)
103 T(RD, -0x1p-1023, nan, 0x0p+0, INVALID)
104 T(RD,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
105 T(RD,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
106 T(RD, -0x1p-1022, nan, 0x0p+0, INVALID)
107 T(RD,-0x1.0000000000001p-1022, nan, 0x0p+0, INVALID)
108 T(RD,-0x1.0000000000002p-1022, nan, 0x0p+0, INVALID)
109 T(RD, -0x1p-1021, nan, 0x0p+0, INVALID)
110 T(RD, -0x1p-1020, nan, 0x0p+0, INVALID)
111 T(RD, -0x1p-52, nan, 0x0p+0, INVALID)
112 T(RD, -0x1p-50, nan, 0x0p+0, INVALID)
113 T(RD, -0x1p-2, nan, 0x0p+0, INVALID)
114 T(RD, -0x1p-1, nan, 0x0p+0, INVALID)
115 T(RD, -0x1.ffffffffffffap-1, nan, 0x0p+0, INVALID)
116 T(RD, -0x1.ffffffffffffcp-1, nan, 0x0p+0, INVALID)
117 T(RD, -0x1.ffffffffffffep-1, nan, 0x0p+0, INVALID)
118 T(RD, -0x1.fffffffffffffp-1, nan, 0x0p+0, INVALID)
119 T(RD, -0x1p+0, nan, 0x0p+0, INVALID)
120 T(RD, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID)
121 T(RD, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID)
122 T(RD, -0x1.0000000000004p+0, nan, 0x0p+0, INVALID)
123 T(RD, -0x1p+1, nan, 0x0p+0, INVALID)
124 T(RD, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
125 T(RD, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
126 T(RD, -0x1p+2, nan, 0x0p+0, INVALID)
127 T(RD, -0x1p+1022, nan, 0x0p+0, INVALID)
128 T(RD,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
129 T(RD,-0x1.0000000000004p+1022, nan, 0x0p+0, INVALID)
130 T(RD, -0x1p+1023, nan, 0x0p+0, INVALID)
131 T(RD,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
132 T(RD,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID)
133 T(RD,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID)
134 T(RD, -inf, nan, 0x0p+0, INVALID)
135 T(RD, 0x1.ffffffffffff7p-1, -0x1.2000000000003p-50, -0x1.ep-2, INEXACT)
136 T(RD, 0x1.ffffffffffff8p-1, -0x1.0000000000003p-50, -0x1p+0, INEXACT)
137 T(RD, 0x1.ffffffffffff9p-1, -0x1.c000000000004p-51, -0x1.ep-1, INEXACT)
138 T(RD, 0x1.ffffffffffffap-1, -0x1.8000000000003p-51, -0x1.8p-1, INEXACT)
139 T(RD, 0x1.ffffffffffffbp-1, -0x1.4000000000002p-51, -0x1.cp-2, INEXACT)
140 T(RD, 0x1.0000000000003p+0, 0x1.7fffffffffffdp-51, -0x1.8p-1, INEXACT)
141 T(RD, 0x1.0000000000005p+0, 0x1.3fffffffffffcp-50, -0x1.cp-1, INEXACT)
142 T(RD, 0x1.0000000000007p+0, 0x1.bfffffffffff9p-50, -0x1.cp-1, INEXACT)
143 T(RD, 0x1.0000000000008p+0, 0x1.ffffffffffff8p-50, -0x1.555556p-47, INEXACT)
144 T(RD, 0x1.0000000000009p+0, 0x1.1fffffffffffap-49, -0x1.ep-1, INEXACT)
145 T(RN, 0x1.ffffffffffff7p-1, -0x1.2000000000003p-50, -0x1.ep-2, INEXACT)
146 T(RN, 0x1.ffffffffffff8p-1, -0x1.0000000000002p-50, 0x1.555556p-50, INEXACT)
147 T(RN, 0x1.ffffffffffff9p-1, -0x1.c000000000003p-51, 0x1p-4, INEXACT)
148 T(RN, 0x1.ffffffffffffap-1, -0x1.8000000000002p-51, 0x1p-2, INEXACT)
149 T(RN, 0x1.ffffffffffffbp-1, -0x1.4000000000002p-51, -0x1.cp-2, INEXACT)
150 T(RN, 0x1.ffffffffffffcp-1, -0x1.0000000000001p-51, 0x1.555556p-52, INEXACT)
151 T(RN, 0x1.ffffffffffffdp-1, -0x1.8000000000001p-52, 0x1p-3, INEXACT)
152 T(RN, 0x1.fffffffffffffp-1, -0x1p-53, 0x1p-2, INEXACT)
153 T(RN, 0x1.0000000000001p+0, 0x1.fffffffffffffp-53, -0x1.555554p-53, INEXACT)
154 T(RN, 0x1.0000000000002p+0, 0x1.ffffffffffffep-52, -0x1.555554p-51, INEXACT)
155 T(RN, 0x1.0000000000003p+0, 0x1.7fffffffffffep-51, 0x1p-2, INEXACT)
156 T(RN, 0x1.0000000000004p+0, 0x1.ffffffffffffcp-51, -0x1.555556p-49, INEXACT)
157 T(RN, 0x1.0000000000005p+0, 0x1.3fffffffffffdp-50, 0x1p-3, INEXACT)
158 T(RN, 0x1.0000000000007p+0, 0x1.bfffffffffffap-50, 0x1p-3, INEXACT)
159 T(RN, 0x1.0000000000008p+0, 0x1.ffffffffffff8p-50, -0x1.555556p-47, INEXACT)
160 T(RN, 0x1.0000000000009p+0, 0x1.1fffffffffffbp-49, 0x1p-4, INEXACT)
161 T(RN, nan, nan, 0x0p+0, 0)
162 T(RN, -0x1p-1073, nan, 0x0p+0, INVALID)
163 T(RN, -0x1.cp-1072, nan, 0x0p+0, INVALID)
164 T(RN, -0x1p-1024, nan, 0x0p+0, INVALID)
165 T(RN, -0x1p-1023, nan, 0x0p+0, INVALID)
166 T(RN,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
167 T(RN,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
168 T(RN,-0x1.0000000000001p-1022, nan, 0x0p+0, INVALID)
169 T(RN,-0x1.0000000000002p-1022, nan, 0x0p+0, INVALID)
170 T(RN, -0x1p-1021, nan, 0x0p+0, INVALID)
171 T(RN, -0x1p-1020, nan, 0x0p+0, INVALID)
172 T(RN, -0x1p-52, nan, 0x0p+0, INVALID)
173 T(RN, -0x1p-50, nan, 0x0p+0, INVALID)
174 T(RN, -0x1p-2, nan, 0x0p+0, INVALID)
175 T(RN, -0x1p-1, nan, 0x0p+0, INVALID)
176 T(RN, -0x1.ffffffffffffap-1, nan, 0x0p+0, INVALID)
177 T(RN, -0x1.ffffffffffffcp-1, nan, 0x0p+0, INVALID)
178 T(RN, -0x1.ffffffffffffep-1, nan, 0x0p+0, INVALID)
179 T(RN, -0x1.fffffffffffffp-1, nan, 0x0p+0, INVALID)
180 T(RN, -0x1p+0, nan, 0x0p+0, INVALID)
181 T(RN, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID)
182 T(RN, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID)
183 T(RN, -0x1.0000000000004p+0, nan, 0x0p+0, INVALID)
184 T(RN, -0x1p+1, nan, 0x0p+0, INVALID)
185 T(RN, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
186 T(RN, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
187 T(RN, -0x1p+2, nan, 0x0p+0, INVALID)
188 T(RN, -0x1p+1022, nan, 0x0p+0, INVALID)
189 T(RN,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
190 T(RN,-0x1.0000000000004p+1022, nan, 0x0p+0, INVALID)
191 T(RN, -0x1p+1023, nan, 0x0p+0, INVALID)
192 T(RN,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
193 T(RN,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID)
194 T(RU, inf, inf, 0x0p+0, 0)
195 T(RU, 0x0p+0, -inf, 0x0p+0, DIVBYZERO)
196 T(RU, -0x0p+0, -inf, 0x0p+0, DIVBYZERO)
197 T(RU, 0x1.ffffffffffffcp-1, -0x1.0000000000001p-51, 0x1.555554p-52, INEXACT)
198 T(RU, 0x1.ffffffffffffdp-1, -0x1.8000000000001p-52, 0x1p-3, INEXACT)
199 T(RU, 0x1.ffffffffffffep-1, -0x1p-52, 0x1p-1, INEXACT)
200 T(RU, 0x1.fffffffffffffp-1, -0x1p-53, 0x1p-2, INEXACT)
201 T(RU, 0x1.0000000000001p+0, 0x1p-52, 0x1p-1, INEXACT)
202 T(RU, 0x1.0000000000002p+0, 0x1.fffffffffffffp-52, 0x1p+0, INEXACT)
203 T(RU, 0x1.0000000000004p+0, 0x1.ffffffffffffdp-51, 0x1p+0, INEXACT)
204 T(RU, nan, nan, 0x0p+0, 0)
205 T(RU, nan, nan, 0x0p+0, 0)
206 T(RU, -0x1p-1074, nan, 0x0p+0, INVALID)
207 T(RU, -0x1p-1073, nan, 0x0p+0, INVALID)
208 T(RU, -0x1.cp-1072, nan, 0x0p+0, INVALID)
209 T(RU, -0x1p-1024, nan, 0x0p+0, INVALID)
210 T(RU, -0x1p-1023, nan, 0x0p+0, INVALID)
211 T(RU,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
212 T(RU,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
213 T(RU, -0x1p-1022, nan, 0x0p+0, INVALID)
214 T(RU,-0x1.0000000000001p-1022, nan, 0x0p+0, INVALID)
215 T(RU,-0x1.0000000000002p-1022, nan, 0x0p+0, INVALID)
216 T(RU, -0x1p-1021, nan, 0x0p+0, INVALID)
217 T(RU, -0x1p-1020, nan, 0x0p+0, INVALID)
218 T(RU, -0x1p-52, nan, 0x0p+0, INVALID)
219 T(RU, -0x1p-50, nan, 0x0p+0, INVALID)
220 T(RU, -0x1p-2, nan, 0x0p+0, INVALID)
221 T(RU, -0x1p-1, nan, 0x0p+0, INVALID)
222 T(RU, -0x1.ffffffffffffap-1, nan, 0x0p+0, INVALID)
223 T(RU, -0x1.ffffffffffffcp-1, nan, 0x0p+0, INVALID)
224 T(RU, -0x1.ffffffffffffep-1, nan, 0x0p+0, INVALID)
225 T(RU, -0x1.fffffffffffffp-1, nan, 0x0p+0, INVALID)
226 T(RU, -0x1p+0, nan, 0x0p+0, INVALID)
227 T(RU, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID)
228 T(RU, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID)
229 T(RU, -0x1.0000000000004p+0, nan, 0x0p+0, INVALID)
230 T(RU, -0x1p+1, nan, 0x0p+0, INVALID)
231 T(RU, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
232 T(RU, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
233 T(RU, -0x1p+2, nan, 0x0p+0, INVALID)
234 T(RU, -0x1p+1022, nan, 0x0p+0, INVALID)
235 T(RU,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
236 T(RU,-0x1.0000000000004p+1022, nan, 0x0p+0, INVALID)
237 T(RU, -0x1p+1023, nan, 0x0p+0, INVALID)
238 T(RU,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
239 T(RU,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID)
240 T(RU,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID)
241 T(RU, -inf, nan, 0x0p+0, INVALID)
242 T(RU, 0x1.ffffffffffff7p-1, -0x1.2000000000002p-50, 0x1.1p-1, INEXACT)
243 T(RU, 0x1.ffffffffffff8p-1, -0x1.0000000000002p-50, 0x1.555554p-50, INEXACT)
244 T(RU, 0x1.ffffffffffff9p-1, -0x1.c000000000003p-51, 0x1p-4, INEXACT)
245 T(RU, 0x1.ffffffffffffap-1, -0x1.8000000000002p-51, 0x1p-2, INEXACT)
246 T(RU, 0x1.ffffffffffffbp-1, -0x1.4000000000001p-51, 0x1.2p-1, INEXACT)
247 T(RU, 0x1.0000000000003p+0, 0x1.7fffffffffffep-51, 0x1p-2, INEXACT)
248 T(RU, 0x1.0000000000005p+0, 0x1.3fffffffffffdp-50, 0x1p-3, INEXACT)
249 T(RU, 0x1.0000000000007p+0, 0x1.bfffffffffffap-50, 0x1p-3, INEXACT)
250 T(RU, 0x1.0000000000008p+0, 0x1.ffffffffffff9p-50, 0x1p+0, INEXACT)
251 T(RU, 0x1.0000000000009p+0, 0x1.1fffffffffffbp-49, 0x1p-4, INEXACT)
252 T(RZ, inf, inf, 0x0p+0, 0)
253 T(RZ, 0x0p+0, -inf, 0x0p+0, DIVBYZERO)
254 T(RZ, -0x0p+0, -inf, 0x0p+0, DIVBYZERO)
255 T(RZ, 0x1.ffffffffffffcp-1, -0x1.0000000000001p-51, 0x1.555554p-52, INEXACT)
256 T(RZ, 0x1.ffffffffffffdp-1, -0x1.8000000000001p-52, 0x1p-3, INEXACT)
257 T(RZ, 0x1.ffffffffffffep-1, -0x1p-52, 0x1p-1, INEXACT)
258 T(RZ, 0x1.fffffffffffffp-1, -0x1p-53, 0x1p-2, INEXACT)
259 T(RZ, 0x1.0000000000001p+0, 0x1.fffffffffffffp-53, -0x1.555554p-53, INEXACT)
260 T(RZ, 0x1.0000000000002p+0, 0x1.ffffffffffffep-52, -0x1.555554p-51, INEXACT)
261 T(RZ, 0x1.0000000000004p+0, 0x1.ffffffffffffcp-51, -0x1.555556p-49, INEXACT)
262 T(RZ, nan, nan, 0x0p+0, 0)
263 T(RZ, nan, nan, 0x0p+0, 0)
264 T(RZ, -0x1p-1074, nan, 0x0p+0, INVALID)
265 T(RZ, -0x1p-1073, nan, 0x0p+0, INVALID)
266 T(RZ, -0x1.cp-1072, nan, 0x0p+0, INVALID)
267 T(RZ, -0x1p-1024, nan, 0x0p+0, INVALID)
268 T(RZ, -0x1p-1023, nan, 0x0p+0, INVALID)
269 T(RZ,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
270 T(RZ,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
271 T(RZ, -0x1p-1022, nan, 0x0p+0, INVALID)
272 T(RZ,-0x1.0000000000001p-1022, nan, 0x0p+0, INVALID)
273 T(RZ,-0x1.0000000000002p-1022, nan, 0x0p+0, INVALID)
274 T(RZ, -0x1p-1021, nan, 0x0p+0, INVALID)
275 T(RZ, -0x1p-1020, nan, 0x0p+0, INVALID)
276 T(RZ, -0x1p-52, nan, 0x0p+0, INVALID)
277 T(RZ, -0x1p-50, nan, 0x0p+0, INVALID)
278 T(RZ, -0x1p-2, nan, 0x0p+0, INVALID)
279 T(RZ, -0x1p-1, nan, 0x0p+0, INVALID)
280 T(RZ, -0x1.ffffffffffffap-1, nan, 0x0p+0, INVALID)
281 T(RZ, -0x1.ffffffffffffcp-1, nan, 0x0p+0, INVALID)
282 T(RZ, -0x1.ffffffffffffep-1, nan, 0x0p+0, INVALID)
283 T(RZ, -0x1.fffffffffffffp-1, nan, 0x0p+0, INVALID)
284 T(RZ, -0x1p+0, nan, 0x0p+0, INVALID)
285 T(RZ, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID)
286 T(RZ, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID)
287 T(RZ, -0x1.0000000000004p+0, nan, 0x0p+0, INVALID)
288 T(RZ, -0x1p+1, nan, 0x0p+0, INVALID)
289 T(RZ, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
290 T(RZ, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
291 T(RZ, -0x1p+2, nan, 0x0p+0, INVALID)
292 T(RZ, -0x1p+1022, nan, 0x0p+0, INVALID)
293 T(RZ,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
294 T(RZ,-0x1.0000000000004p+1022, nan, 0x0p+0, INVALID)
295 T(RZ, -0x1p+1023, nan, 0x0p+0, INVALID)
296 T(RZ,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
297 T(RZ,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID)
298 T(RZ,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID)
299 T(RZ, -inf, nan, 0x0p+0, INVALID)
300 T(RZ, 0x1.ffffffffffff7p-1, -0x1.2000000000002p-50, 0x1.1p-1, INEXACT)
301 T(RZ, 0x1.ffffffffffff8p-1, -0x1.0000000000002p-50, 0x1.555554p-50, INEXACT)
302 T(RZ, 0x1.ffffffffffff9p-1, -0x1.c000000000003p-51, 0x1p-4, INEXACT)
303 T(RZ, 0x1.ffffffffffffap-1, -0x1.8000000000002p-51, 0x1p-2, INEXACT)
304 T(RZ, 0x1.ffffffffffffbp-1, -0x1.4000000000001p-51, 0x1.2p-1, INEXACT)
305 T(RZ, 0x1.0000000000003p+0, 0x1.7fffffffffffdp-51, -0x1.8p-1, INEXACT)
306 T(RZ, 0x1.0000000000005p+0, 0x1.3fffffffffffcp-50, -0x1.cp-1, INEXACT)
307 T(RZ, 0x1.0000000000007p+0, 0x1.bfffffffffff9p-50, -0x1.cp-1, INEXACT)
308 T(RZ, 0x1.0000000000008p+0, 0x1.ffffffffffff8p-50, -0x1.555556p-47, INEXACT)
309 T(RZ, 0x1.0000000000009p+0, 0x1.1fffffffffffap-49, -0x1.ep-1, INEXACT)