fgetwc may clobber errno when the result is not WEOF
[libc-test.git] / src / math / ucb / sqrtf.h
blobec1288cd685b52a361201161ded8eb5ae1657d3b
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 // sqrt(+-0) is +-0
38 T(RN, 0x0p+0, 0x0p+0, 0x0p+0, 0)
39 T(RN, -0x0p+0, -0x0p+0, 0x0p+0, 0)
40 T(RZ, 0x0p+0, 0x0p+0, 0x0p+0, 0)
41 T(RZ, -0x0p+0, -0x0p+0, 0x0p+0, 0)
42 T(RU, 0x0p+0, 0x0p+0, 0x0p+0, 0)
43 T(RU, -0x0p+0, -0x0p+0, 0x0p+0, 0)
44 T(RD, 0x0p+0, 0x0p+0, 0x0p+0, 0)
45 T(RD, -0x0p+0, -0x0p+0, 0x0p+0, 0)
46 // sqrt(+max) is finite
47 T(RN, 0x1.fffffep+127, 0x1.fffffep+63, -0x1p-1, INEXACT)
48 T(RZ, 0x1.fffffep+127, 0x1.fffffep+63, -0x1p-1, INEXACT)
49 T(RU, 0x1.fffffep+127, 0x1p+64, 0x1p-2, INEXACT)
50 T(RD, 0x1.fffffep+127, 0x1.fffffep+63, -0x1p-1, INEXACT)
51 // sqrt(16736281) = 4091
52 T(RN, 0x1.fec032p+23, 0x1.ff6p+11, 0x0p+0, 0)
53 T(RZ, 0x1.fec032p+23, 0x1.ff6p+11, 0x0p+0, 0)
54 T(RU, 0x1.fec032p+23, 0x1.ff6p+11, 0x0p+0, 0)
55 T(RD, 0x1.fec032p+23, 0x1.ff6p+11, 0x0p+0, 0)
56 // sqrt(16088121) = 4011
57 T(RN, 0x1.eaf872p+23, 0x1.f56p+11, 0x0p+0, 0)
58 T(RZ, 0x1.eaf872p+23, 0x1.f56p+11, 0x0p+0, 0)
59 T(RU, 0x1.eaf872p+23, 0x1.f56p+11, 0x0p+0, 0)
60 T(RD, 0x1.eaf872p+23, 0x1.f56p+11, 0x0p+0, 0)
61 // sqrt(4)=2
62 T(RN, 0x1p+2, 0x1p+1, 0x0p+0, 0)
63 T(RZ, 0x1p+2, 0x1p+1, 0x0p+0, 0)
64 T(RU, 0x1p+2, 0x1p+1, 0x0p+0, 0)
65 T(RD, 0x1p+2, 0x1p+1, 0x0p+0, 0)
66 // sqrt(x) for x=1,1+ulp,1-ulp
67 T(RN, 0x1.000002p+0, 0x1p+0, -0x1p-1, INEXACT)
68 T(RN, 0x1p+0, 0x1p+0, 0x0p+0, 0)
69 T(RN, 0x1.fffffep-1, 0x1.fffffep-1, -0x1p-1, INEXACT)
70 T(RZ, 0x1.000002p+0, 0x1p+0, -0x1p-1, INEXACT)
71 T(RZ, 0x1p+0, 0x1p+0, 0x0p+0, 0)
72 T(RZ, 0x1.fffffep-1, 0x1.fffffep-1, -0x1p-1, INEXACT)
73 T(RU, 0x1.000002p+0, 0x1.000002p+0, 0x1p-1, INEXACT)
74 T(RU, 0x1p+0, 0x1p+0, 0x0p+0, 0)
75 T(RU, 0x1.fffffep-1, 0x1p+0, 0x1p-2, INEXACT)
76 T(RD, 0x1.000002p+0, 0x1p+0, -0x1p-1, INEXACT)
77 T(RD, 0x1p+0, 0x1p+0, 0x0p+0, 0)
78 T(RD, 0x1.fffffep-1, 0x1.fffffep-1, -0x1p-1, INEXACT)
79 // sqrt(+min) is non-zero
80 T(RN, 0x1p-126, 0x1p-63, 0x0p+0, 0)
81 T(RZ, 0x1p-126, 0x1p-63, 0x0p+0, 0)
82 T(RU, 0x1p-126, 0x1p-63, 0x0p+0, 0)
83 T(RD, 0x1p-126, 0x1p-63, 0x0p+0, 0)
84 // random arguments between 0 8
85 T(RN, 0x1.766bdcp+1, 0x1.b5d7p+0, 0x1.8023f6p-2, INEXACT)
86 T(RN, 0x1.b6547p+2, 0x1.4efb34p+1, 0x1.ab352ap-2, INEXACT)
87 T(RN, 0x1.e1653p+2, 0x1.5f0d32p+1, -0x1.3a5a34p-5, INEXACT)
88 T(RN, 0x1.541ddp+0, 0x1.271372p+0, 0x1.eb2696p-2, INEXACT)
89 T(RN, 0x1.754c3ep+1, 0x1.b52eb4p+0, -0x1.1c5f7cp-3, INEXACT)
90 T(RN, 0x1.ebe1e2p+1, 0x1.f5d724p+0, 0x1.e45af6p-2, INEXACT)
91 T(RN, 0x1.940d8ep+2, 0x1.419dfap+1, 0x1.667d7ap-4, INEXACT)
92 T(RN, 0x1.dae714p+2, 0x1.5cad1ap+1, -0x1.8e8572p-5, INEXACT)
93 T(RN, 0x1.a9f2d2p+1, 0x1.d2ff14p+0, -0x1.20826cp-3, INEXACT)
94 T(RN, 0x1.57dd34p-3, 0x1.a397d8p-2, -0x1.10b108p-3, INEXACT)
95 // sqrt(min subnormal) is non-zero
96 T(RN, 0x1p-149, 0x1.6a09e6p-75, -0x1.9fcef4p-3, INEXACT)
97 T(RZ, 0x1p-149, 0x1.6a09e6p-75, -0x1.9fcef4p-3, INEXACT)
98 T(RU, 0x1p-149, 0x1.6a09e8p-75, 0x1.980c44p-1, INEXACT)
99 T(RD, 0x1p-149, 0x1.6a09e6p-75, -0x1.9fcef4p-3, INEXACT)
100 // sqrt(inf) is inf
101 T(RN, inf, inf, 0x0p+0, 0)
102 T(RZ, inf, inf, 0x0p+0, 0)
103 T(RU, inf, inf, 0x0p+0, 0)
104 T(RD, inf, inf, 0x0p+0, 0)
105 // sqrt(nan) is nan
106 T(RN, nan, nan, 0x0p+0, 0)
107 T(RZ, nan, nan, 0x0p+0, 0)
108 T(RU, nan, nan, 0x0p+0, 0)
109 T(RD, nan, nan, 0x0p+0, 0)
110 // sqrt(-ve) is nan
111 T(RN, -0x1p-149, nan, 0x0p+0, INVALID)
112 T(RN, -0x1p+0, nan, 0x0p+0, INVALID)
113 T(RN, -inf, nan, 0x0p+0, INVALID)
114 T(RZ, -0x1p-149, nan, 0x0p+0, INVALID)
115 T(RZ, -0x1p+0, nan, 0x0p+0, INVALID)
116 T(RZ, -inf, nan, 0x0p+0, INVALID)
117 T(RU, -0x1p-149, nan, 0x0p+0, INVALID)
118 T(RU, -0x1p+0, nan, 0x0p+0, INVALID)
119 T(RU, -inf, nan, 0x0p+0, INVALID)
120 T(RD, -0x1p-149, nan, 0x0p+0, INVALID)
121 T(RD, -0x1p+0, nan, 0x0p+0, INVALID)
122 T(RD, -inf, nan, 0x0p+0, INVALID)
123 T(RD, 0x1p-148, 0x1p-74, 0x0p+0, 0)
124 T(RD, 0x1p-146, 0x1p-73, 0x0p+0, 0)
125 T(RD, 0x1p-128, 0x1p-64, 0x0p+0, 0)
126 T(RD, 0x1p-124, 0x1p-62, 0x0p+0, 0)
127 T(RD, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
128 T(RD, 0x1p-8, 0x1p-4, 0x0p+0, 0)
129 T(RD, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
130 T(RD, 0x1p-4, 0x1p-2, 0x0p+0, 0)
131 T(RD, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
132 T(RD, 0x1p+8, 0x1p+4, 0x0p+0, 0)
133 T(RD, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
134 T(RD, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
135 T(RD, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
136 T(RD, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
137 T(RD, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
138 T(RD, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
139 T(RD, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
140 T(RD, 0x1p+124, 0x1p+62, 0x0p+0, 0)
141 T(RD, 0x1p+126, 0x1p+63, 0x0p+0, 0)
142 T(RD, 0x1.fffffcp-127, 0x1.fffffcp-64, -0x1.fffffep-1, INEXACT)
143 T(RD, 0x1.000004p-126, 0x1p-63, -0x1.fffffep-1, INEXACT)
144 T(RD, 0x1.ffffeep-1, 0x1.fffff6p-1, -0x1.ffffd8p-2, INEXACT)
145 T(RD, 0x1.fffffp-1, 0x1.fffff6p-1, -0x1.fffffp-1, INEXACT)
146 T(RD, 0x1.fffff2p-1, 0x1.fffff8p-1, -0x1.ffffe8p-2, INEXACT)
147 T(RD, 0x1.fffff4p-1, 0x1.fffff8p-1, -0x1.fffff6p-1, INEXACT)
148 T(RD, 0x1.fffff6p-1, 0x1.fffffap-1, -0x1.fffff4p-2, INEXACT)
149 T(RD, 0x1.fffff8p-1, 0x1.fffffap-1, -0x1.fffffcp-1, INEXACT)
150 T(RD, 0x1.fffffap-1, 0x1.fffffcp-1, -0x1.fffffcp-2, INEXACT)
151 T(RD, 0x1.fffffcp-1, 0x1.fffffcp-1, -0x1.fffffep-1, INEXACT)
152 T(RD, 0x1.000004p+0, 0x1p+0, -0x1.fffffep-1, INEXACT)
153 T(RD, 0x1.000006p+0, 0x1.000002p+0, -0x1.fffff8p-2, INEXACT)
154 T(RD, 0x1.000008p+0, 0x1.000002p+0, -0x1.fffff8p-1, INEXACT)
155 T(RD, 0x1.00000ap+0, 0x1.000004p+0, -0x1.ffffe8p-2, INEXACT)
156 T(RD, 0x1.00000cp+0, 0x1.000004p+0, -0x1.ffffeep-1, INEXACT)
157 T(RD, 0x1.00000ep+0, 0x1.000006p+0, -0x1.ffffdp-2, INEXACT)
158 T(RD, 0x1.fffffcp+125, 0x1.fffffcp+62, -0x1.fffffep-1, INEXACT)
159 T(RD, 0x1.000004p+126, 0x1p+63, -0x1.fffffep-1, INEXACT)
160 T(RD, nan, nan, 0x0p+0, 0)
161 T(RD, -0x1p-148, nan, 0x0p+0, INVALID)
162 T(RD, -0x1.4p-147, nan, 0x0p+0, INVALID)
163 T(RD, -0x1.cp-147, nan, 0x0p+0, INVALID)
164 T(RD, -0x1.2p-146, nan, 0x0p+0, INVALID)
165 T(RD,-0x1.ffffdcp-127, nan, 0x0p+0, INVALID)
166 T(RD,-0x1.ffffe4p-127, nan, 0x0p+0, INVALID)
167 T(RD, -0x1.fffffp-127, nan, 0x0p+0, INVALID)
168 T(RD,-0x1.fffff4p-127, nan, 0x0p+0, INVALID)
169 T(RD,-0x1.fffff8p-127, nan, 0x0p+0, INVALID)
170 T(RD,-0x1.fffffcp-127, nan, 0x0p+0, INVALID)
171 T(RD,-0x1.fffffap-126, nan, 0x0p+0, INVALID)
172 T(RD, -0x1p-125, nan, 0x0p+0, INVALID)
173 T(RD,-0x1.000002p-125, nan, 0x0p+0, INVALID)
174 T(RD, -0x1p-23, nan, 0x0p+0, INVALID)
175 T(RD, -0x1p-22, nan, 0x0p+0, INVALID)
176 T(RD, -0x1.8p-22, nan, 0x0p+0, INVALID)
177 T(RD, -0x1.000004p+1, nan, 0x0p+0, INVALID)
178 T(RD, -0x1.800008p+1, nan, 0x0p+0, INVALID)
179 T(RD, -0x1.fffff6p+1, nan, 0x0p+0, INVALID)
180 T(RD,-0x1.fffff8p+125, nan, 0x0p+0, INVALID)
181 T(RD,-0x1.000004p+126, nan, 0x0p+0, INVALID)
182 T(RD,-0x1.fffffep+126, nan, 0x0p+0, INVALID)
183 T(RD,-0x1.000004p+127, nan, 0x0p+0, INVALID)
184 T(RN, 0x1p-148, 0x1p-74, 0x0p+0, 0)
185 T(RN, 0x1p-146, 0x1p-73, 0x0p+0, 0)
186 T(RN, 0x1p-128, 0x1p-64, 0x0p+0, 0)
187 T(RN, 0x1p-124, 0x1p-62, 0x0p+0, 0)
188 T(RN, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
189 T(RN, 0x1p-8, 0x1p-4, 0x0p+0, 0)
190 T(RN, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
191 T(RN, 0x1p-4, 0x1p-2, 0x0p+0, 0)
192 T(RN, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
193 T(RN, 0x1p+8, 0x1p+4, 0x0p+0, 0)
194 T(RN, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
195 T(RN, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
196 T(RN, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
197 T(RN, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
198 T(RN, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
199 T(RN, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
200 T(RN, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
201 T(RN, 0x1p+124, 0x1p+62, 0x0p+0, 0)
202 T(RN, 0x1p+126, 0x1p+63, 0x0p+0, 0)
203 T(RN, 0x1.fffffcp-127, 0x1.fffffep-64, 0x1.000002p-25, INEXACT)
204 T(RN, 0x1.000004p-126, 0x1.000002p-63, 0x1.fffffcp-25, INEXACT)
205 T(RN, 0x1.ffffeep-1, 0x1.fffff6p-1, -0x1.ffffd8p-2, INEXACT)
206 T(RN, 0x1.fffffp-1, 0x1.fffff8p-1, 0x1.000004p-21, INEXACT)
207 T(RN, 0x1.fffff2p-1, 0x1.fffff8p-1, -0x1.ffffe8p-2, INEXACT)
208 T(RN, 0x1.fffff4p-1, 0x1.fffffap-1, 0x1.200004p-22, INEXACT)
209 T(RN, 0x1.fffff6p-1, 0x1.fffffap-1, -0x1.fffff4p-2, INEXACT)
210 T(RN, 0x1.fffff8p-1, 0x1.fffffcp-1, 0x1.000002p-23, INEXACT)
211 T(RN, 0x1.fffffap-1, 0x1.fffffcp-1, -0x1.fffffcp-2, INEXACT)
212 T(RN, 0x1.fffffcp-1, 0x1.fffffep-1, 0x1.000002p-25, INEXACT)
213 T(RN, 0x1.000004p+0, 0x1.000002p+0, 0x1.fffffcp-25, INEXACT)
214 T(RN, 0x1.000006p+0, 0x1.000002p+0, -0x1.fffff8p-2, INEXACT)
215 T(RN, 0x1.000008p+0, 0x1.000004p+0, 0x1.fffff8p-23, INEXACT)
216 T(RN, 0x1.00000ap+0, 0x1.000004p+0, -0x1.ffffe8p-2, INEXACT)
217 T(RN, 0x1.00000cp+0, 0x1.000006p+0, 0x1.1ffffap-21, INEXACT)
218 T(RN, 0x1.00000ep+0, 0x1.000006p+0, -0x1.ffffdp-2, INEXACT)
219 T(RN, 0x1.fffffcp+125, 0x1.fffffep+62, 0x1.000002p-25, INEXACT)
220 T(RN, 0x1.000004p+126, 0x1.000002p+63, 0x1.fffffcp-25, INEXACT)
221 T(RN, nan, nan, 0x0p+0, 0)
222 T(RN, -0x1p-148, nan, 0x0p+0, INVALID)
223 T(RN, -0x1.4p-147, nan, 0x0p+0, INVALID)
224 T(RN, -0x1.cp-147, nan, 0x0p+0, INVALID)
225 T(RN, -0x1.2p-146, nan, 0x0p+0, INVALID)
226 T(RN,-0x1.ffffdcp-127, nan, 0x0p+0, INVALID)
227 T(RN,-0x1.ffffe4p-127, nan, 0x0p+0, INVALID)
228 T(RN, -0x1.fffffp-127, nan, 0x0p+0, INVALID)
229 T(RN,-0x1.fffff4p-127, nan, 0x0p+0, INVALID)
230 T(RN,-0x1.fffff8p-127, nan, 0x0p+0, INVALID)
231 T(RN,-0x1.fffffcp-127, nan, 0x0p+0, INVALID)
232 T(RN,-0x1.fffffap-126, nan, 0x0p+0, INVALID)
233 T(RN, -0x1p-125, nan, 0x0p+0, INVALID)
234 T(RN,-0x1.000002p-125, nan, 0x0p+0, INVALID)
235 T(RN, -0x1p-23, nan, 0x0p+0, INVALID)
236 T(RN, -0x1p-22, nan, 0x0p+0, INVALID)
237 T(RN, -0x1.8p-22, nan, 0x0p+0, INVALID)
238 T(RN, -0x1.000004p+1, nan, 0x0p+0, INVALID)
239 T(RN, -0x1.800008p+1, nan, 0x0p+0, INVALID)
240 T(RN, -0x1.fffff6p+1, nan, 0x0p+0, INVALID)
241 T(RN,-0x1.fffff8p+125, nan, 0x0p+0, INVALID)
242 T(RN,-0x1.000004p+126, nan, 0x0p+0, INVALID)
243 T(RN,-0x1.fffffep+126, nan, 0x0p+0, INVALID)
244 T(RN,-0x1.000004p+127, nan, 0x0p+0, INVALID)
245 T(RU, 0x1p-148, 0x1p-74, 0x0p+0, 0)
246 T(RU, 0x1p-146, 0x1p-73, 0x0p+0, 0)
247 T(RU, 0x1p-128, 0x1p-64, 0x0p+0, 0)
248 T(RU, 0x1p-124, 0x1p-62, 0x0p+0, 0)
249 T(RU, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
250 T(RU, 0x1p-8, 0x1p-4, 0x0p+0, 0)
251 T(RU, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
252 T(RU, 0x1p-4, 0x1p-2, 0x0p+0, 0)
253 T(RU, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
254 T(RU, 0x1p+8, 0x1p+4, 0x0p+0, 0)
255 T(RU, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
256 T(RU, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
257 T(RU, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
258 T(RU, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
259 T(RU, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
260 T(RU, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
261 T(RU, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
262 T(RU, 0x1p+124, 0x1p+62, 0x0p+0, 0)
263 T(RU, 0x1p+126, 0x1p+63, 0x0p+0, 0)
264 T(RU, 0x1.fffffcp-127, 0x1.fffffep-64, 0x1.000002p-25, INEXACT)
265 T(RU, 0x1.000004p-126, 0x1.000002p-63, 0x1.fffffcp-25, INEXACT)
266 T(RU, 0x1.ffffeep-1, 0x1.fffff8p-1, 0x1.000014p-1, INEXACT)
267 T(RU, 0x1.fffffp-1, 0x1.fffff8p-1, 0x1.000004p-21, INEXACT)
268 T(RU, 0x1.fffff2p-1, 0x1.fffffap-1, 0x1.00000cp-1, INEXACT)
269 T(RU, 0x1.fffff4p-1, 0x1.fffffap-1, 0x1.200004p-22, INEXACT)
270 T(RU, 0x1.fffff6p-1, 0x1.fffffcp-1, 0x1.000006p-1, INEXACT)
271 T(RU, 0x1.fffff8p-1, 0x1.fffffcp-1, 0x1.000002p-23, INEXACT)
272 T(RU, 0x1.fffffap-1, 0x1.fffffep-1, 0x1.000002p-1, INEXACT)
273 T(RU, 0x1.fffffcp-1, 0x1.fffffep-1, 0x1.000002p-25, INEXACT)
274 T(RU, 0x1.000004p+0, 0x1.000002p+0, 0x1.fffffcp-25, INEXACT)
275 T(RU, 0x1.000006p+0, 0x1.000004p+0, 0x1.000004p-1, INEXACT)
276 T(RU, 0x1.000008p+0, 0x1.000004p+0, 0x1.fffff8p-23, INEXACT)
277 T(RU, 0x1.00000ap+0, 0x1.000006p+0, 0x1.00000cp-1, INEXACT)
278 T(RU, 0x1.00000cp+0, 0x1.000006p+0, 0x1.1ffffap-21, INEXACT)
279 T(RU, 0x1.00000ep+0, 0x1.000008p+0, 0x1.000018p-1, INEXACT)
280 T(RU, 0x1.fffffcp+125, 0x1.fffffep+62, 0x1.000002p-25, INEXACT)
281 T(RU, 0x1.000004p+126, 0x1.000002p+63, 0x1.fffffcp-25, INEXACT)
282 T(RU, nan, nan, 0x0p+0, 0)
283 T(RU, -0x1p-148, nan, 0x0p+0, INVALID)
284 T(RU, -0x1.4p-147, nan, 0x0p+0, INVALID)
285 T(RU, -0x1.cp-147, nan, 0x0p+0, INVALID)
286 T(RU, -0x1.2p-146, nan, 0x0p+0, INVALID)
287 T(RU,-0x1.ffffdcp-127, nan, 0x0p+0, INVALID)
288 T(RU,-0x1.ffffe4p-127, nan, 0x0p+0, INVALID)
289 T(RU, -0x1.fffffp-127, nan, 0x0p+0, INVALID)
290 T(RU,-0x1.fffff4p-127, nan, 0x0p+0, INVALID)
291 T(RU,-0x1.fffff8p-127, nan, 0x0p+0, INVALID)
292 T(RU,-0x1.fffffcp-127, nan, 0x0p+0, INVALID)
293 T(RU,-0x1.fffffap-126, nan, 0x0p+0, INVALID)
294 T(RU, -0x1p-125, nan, 0x0p+0, INVALID)
295 T(RU,-0x1.000002p-125, nan, 0x0p+0, INVALID)
296 T(RU, -0x1p-23, nan, 0x0p+0, INVALID)
297 T(RU, -0x1p-22, nan, 0x0p+0, INVALID)
298 T(RU, -0x1.8p-22, nan, 0x0p+0, INVALID)
299 T(RU, -0x1.000004p+1, nan, 0x0p+0, INVALID)
300 T(RU, -0x1.800008p+1, nan, 0x0p+0, INVALID)
301 T(RU, -0x1.fffff6p+1, nan, 0x0p+0, INVALID)
302 T(RU,-0x1.fffff8p+125, nan, 0x0p+0, INVALID)
303 T(RU,-0x1.000004p+126, nan, 0x0p+0, INVALID)
304 T(RU,-0x1.fffffep+126, nan, 0x0p+0, INVALID)
305 T(RU,-0x1.000004p+127, nan, 0x0p+0, INVALID)
306 T(RZ, 0x1p-148, 0x1p-74, 0x0p+0, 0)
307 T(RZ, 0x1p-146, 0x1p-73, 0x0p+0, 0)
308 T(RZ, 0x1p-128, 0x1p-64, 0x0p+0, 0)
309 T(RZ, 0x1p-124, 0x1p-62, 0x0p+0, 0)
310 T(RZ, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
311 T(RZ, 0x1p-8, 0x1p-4, 0x0p+0, 0)
312 T(RZ, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
313 T(RZ, 0x1p-4, 0x1p-2, 0x0p+0, 0)
314 T(RZ, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
315 T(RZ, 0x1p+8, 0x1p+4, 0x0p+0, 0)
316 T(RZ, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
317 T(RZ, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
318 T(RZ, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
319 T(RZ, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
320 T(RZ, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
321 T(RZ, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
322 T(RZ, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
323 T(RZ, 0x1p+124, 0x1p+62, 0x0p+0, 0)
324 T(RZ, 0x1p+126, 0x1p+63, 0x0p+0, 0)
325 T(RZ, 0x1.fffffcp-127, 0x1.fffffcp-64, -0x1.fffffep-1, INEXACT)
326 T(RZ, 0x1.000004p-126, 0x1p-63, -0x1.fffffep-1, INEXACT)
327 T(RZ, 0x1.ffffeep-1, 0x1.fffff6p-1, -0x1.ffffd8p-2, INEXACT)
328 T(RZ, 0x1.fffffp-1, 0x1.fffff6p-1, -0x1.fffffp-1, INEXACT)
329 T(RZ, 0x1.fffff2p-1, 0x1.fffff8p-1, -0x1.ffffe8p-2, INEXACT)
330 T(RZ, 0x1.fffff4p-1, 0x1.fffff8p-1, -0x1.fffff6p-1, INEXACT)
331 T(RZ, 0x1.fffff6p-1, 0x1.fffffap-1, -0x1.fffff4p-2, INEXACT)
332 T(RZ, 0x1.fffff8p-1, 0x1.fffffap-1, -0x1.fffffcp-1, INEXACT)
333 T(RZ, 0x1.fffffap-1, 0x1.fffffcp-1, -0x1.fffffcp-2, INEXACT)
334 T(RZ, 0x1.fffffcp-1, 0x1.fffffcp-1, -0x1.fffffep-1, INEXACT)
335 T(RZ, 0x1.000004p+0, 0x1p+0, -0x1.fffffep-1, INEXACT)
336 T(RZ, 0x1.000006p+0, 0x1.000002p+0, -0x1.fffff8p-2, INEXACT)
337 T(RZ, 0x1.000008p+0, 0x1.000002p+0, -0x1.fffff8p-1, INEXACT)
338 T(RZ, 0x1.00000ap+0, 0x1.000004p+0, -0x1.ffffe8p-2, INEXACT)
339 T(RZ, 0x1.00000cp+0, 0x1.000004p+0, -0x1.ffffeep-1, INEXACT)
340 T(RZ, 0x1.00000ep+0, 0x1.000006p+0, -0x1.ffffdp-2, INEXACT)
341 T(RZ, 0x1.fffffcp+125, 0x1.fffffcp+62, -0x1.fffffep-1, INEXACT)
342 T(RZ, 0x1.000004p+126, 0x1p+63, -0x1.fffffep-1, INEXACT)
343 T(RZ, nan, nan, 0x0p+0, 0)
344 T(RZ, -0x1p-148, nan, 0x0p+0, INVALID)
345 T(RZ, -0x1.4p-147, nan, 0x0p+0, INVALID)
346 T(RZ, -0x1.cp-147, nan, 0x0p+0, INVALID)
347 T(RZ, -0x1.2p-146, nan, 0x0p+0, INVALID)
348 T(RZ,-0x1.ffffdcp-127, nan, 0x0p+0, INVALID)
349 T(RZ,-0x1.ffffe4p-127, nan, 0x0p+0, INVALID)
350 T(RZ, -0x1.fffffp-127, nan, 0x0p+0, INVALID)
351 T(RZ,-0x1.fffff4p-127, nan, 0x0p+0, INVALID)
352 T(RZ,-0x1.fffff8p-127, nan, 0x0p+0, INVALID)
353 T(RZ,-0x1.fffffcp-127, nan, 0x0p+0, INVALID)
354 T(RZ,-0x1.fffffap-126, nan, 0x0p+0, INVALID)
355 T(RZ, -0x1p-125, nan, 0x0p+0, INVALID)
356 T(RZ,-0x1.000002p-125, nan, 0x0p+0, INVALID)
357 T(RZ, -0x1p-23, nan, 0x0p+0, INVALID)
358 T(RZ, -0x1p-22, nan, 0x0p+0, INVALID)
359 T(RZ, -0x1.8p-22, nan, 0x0p+0, INVALID)
360 T(RZ, -0x1.000004p+1, nan, 0x0p+0, INVALID)
361 T(RZ, -0x1.800008p+1, nan, 0x0p+0, INVALID)
362 T(RZ, -0x1.fffff6p+1, nan, 0x0p+0, INVALID)
363 T(RZ,-0x1.fffff8p+125, nan, 0x0p+0, INVALID)
364 T(RZ,-0x1.000004p+126, nan, 0x0p+0, INVALID)
365 T(RZ,-0x1.fffffep+126, nan, 0x0p+0, INVALID)
366 T(RZ,-0x1.000004p+127, nan, 0x0p+0, INVALID)