fix ulp check in sincosf
[libc-test.git] / src / math / ucb / sqrt.h
blob35aaf33dad8abb22821b7862efdca459e6a7fa9e
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 // sqrtd(+-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 // sqrtd(+max) is finite
47 T(RN, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+511, -0x1p-1, INEXACT)
48 T(RZ, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+511, -0x1p-1, INEXACT)
49 T(RU, 0x1.fffffffffffffp+1023, 0x1p+512, 0x1p-2, INEXACT)
50 T(RD, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+511, -0x1p-1, INEXACT)
51 // sqrtd(4457404589857209) = 66763797
52 T(RN, 0x1.fabf8c265b372p+51, 0x1.fd5e0a8p+25, 0x0p+0, 0)
53 T(RZ, 0x1.fabf8c265b372p+51, 0x1.fd5e0a8p+25, 0x0p+0, 0)
54 T(RU, 0x1.fabf8c265b372p+51, 0x1.fd5e0a8p+25, 0x0p+0, 0)
55 T(RD, 0x1.fabf8c265b372p+51, 0x1.fd5e0a8p+25, 0x0p+0, 0)
56 // sqrtd(3911242719325041) = 62539929
57 T(RN, 0x1.bca8251d4d6e2p+51, 0x1.dd244c8p+25, 0x0p+0, 0)
58 T(RZ, 0x1.bca8251d4d6e2p+51, 0x1.dd244c8p+25, 0x0p+0, 0)
59 T(RU, 0x1.bca8251d4d6e2p+51, 0x1.dd244c8p+25, 0x0p+0, 0)
60 T(RD, 0x1.bca8251d4d6e2p+51, 0x1.dd244c8p+25, 0x0p+0, 0)
61 // sqrtd(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 // sqrtd(x) for x=1,1+ulp,1-ulp
67 T(RN, 0x1.0000000000001p+0, 0x1p+0, -0x1p-1, INEXACT)
68 T(RN, 0x1p+0, 0x1p+0, 0x0p+0, 0)
69 T(RN, 0x1.fffffffffffffp-1, 0x1.fffffffffffffp-1, -0x1p-1, INEXACT)
70 T(RZ, 0x1.0000000000001p+0, 0x1p+0, -0x1p-1, INEXACT)
71 T(RZ, 0x1p+0, 0x1p+0, 0x0p+0, 0)
72 T(RZ, 0x1.fffffffffffffp-1, 0x1.fffffffffffffp-1, -0x1p-1, INEXACT)
73 T(RU, 0x1.0000000000001p+0, 0x1.0000000000001p+0, 0x1p-1, INEXACT)
74 T(RU, 0x1p+0, 0x1p+0, 0x0p+0, 0)
75 T(RU, 0x1.fffffffffffffp-1, 0x1p+0, 0x1p-2, INEXACT)
76 T(RD, 0x1.0000000000001p+0, 0x1p+0, -0x1p-1, INEXACT)
77 T(RD, 0x1p+0, 0x1p+0, 0x0p+0, 0)
78 T(RD, 0x1.fffffffffffffp-1, 0x1.fffffffffffffp-1, -0x1p-1, INEXACT)
79 // sqrtd(+min) is non-zero
80 T(RN, 0x1p-1022, 0x1p-511, 0x0p+0, 0)
81 T(RZ, 0x1p-1022, 0x1p-511, 0x0p+0, 0)
82 T(RU, 0x1p-1022, 0x1p-511, 0x0p+0, 0)
83 T(RD, 0x1p-1022, 0x1p-511, 0x0p+0, 0)
84 T(RN, 0x1p-1074, 0x1p-537, 0x0p+0, 0)
85 T(RZ, 0x1p-1074, 0x1p-537, 0x0p+0, 0)
86 T(RU, 0x1p-1074, 0x1p-537, 0x0p+0, 0)
87 T(RD, 0x1p-1074, 0x1p-537, 0x0p+0, 0)
88 // random arguments between 0 8
89 T(RN, 0x1.766bdb2b5006dp+1, 0x1.b5d6fec392e7dp+0, 0x1.81aab2p-2, INEXACT)
90 T(RN, 0x1.b6546fb825911p+2, 0x1.4efb330ef0b43p+1, 0x1.d98b1ap-2, INEXACT)
91 T(RN, 0x1.e165309de7505p+2, 0x1.5f0d324d38bdp+1, -0x1.f328fp-4, INEXACT)
92 T(RN, 0x1.541dcfba96889p+0, 0x1.271370ec508dp+0, -0x1.eda75cp-4, INEXACT)
93 T(RN, 0x1.754c3e27084ddp+1, 0x1.b52eb45df30b2p+0, -0x1.d43724p-3, INEXACT)
94 T(RN, 0x1.ebe1e1b093c41p+1, 0x1.f5d722e54e976p+0, 0x1.6bca84p-2, INEXACT)
95 T(RN, 0x1.940d8d18455f5p+2, 0x1.419df976f692dp+1, -0x1.8720aap-2, INEXACT)
96 T(RN, 0x1.dae714a51b239p+2, 0x1.5cad1a5584b9ap+1, -0x1.3595b8p-3, INEXACT)
97 T(RN, 0x1.a9f2d1079de4dp+1, 0x1.d2ff13bff7b67p+0, 0x1.e9c98p-2, INEXACT)
98 T(RN, 0x1.57dd33103b871p-3, 0x1.a397d7b1e31f2p-2, -0x1.222098p-3, INEXACT)
99 // sqrtd(inf) is inf
100 T(RN, inf, inf, 0x0p+0, 0)
101 T(RZ, inf, inf, 0x0p+0, 0)
102 T(RU, inf, inf, 0x0p+0, 0)
103 T(RD, inf, inf, 0x0p+0, 0)
104 // sqrtd(nan) is nan
105 T(RN, nan, nan, 0x0p+0, 0)
106 // sqrtd(-ve) is nan
107 T(RN, -0x1p-1074, nan, 0x0p+0, INVALID)
108 T(RN, -0x1p+0, nan, 0x0p+0, INVALID)
109 T(RN, -inf, nan, 0x0p+0, INVALID)
110 T(RD, 0x1p-1072, 0x1p-536, 0x0p+0, 0)
111 T(RD, 0x1p-1024, 0x1p-512, 0x0p+0, 0)
112 T(RD, 0x1p-1020, 0x1p-510, 0x0p+0, 0)
113 T(RD, 0x1p-148, 0x1p-74, 0x0p+0, 0)
114 T(RD, 0x1p-146, 0x1p-73, 0x0p+0, 0)
115 T(RD, 0x1p-128, 0x1p-64, 0x0p+0, 0)
116 T(RD, 0x1p-126, 0x1p-63, 0x0p+0, 0)
117 T(RD, 0x1p-124, 0x1p-62, 0x0p+0, 0)
118 T(RD, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
119 T(RD, 0x1p-8, 0x1p-4, 0x0p+0, 0)
120 T(RD, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
121 T(RD, 0x1p-4, 0x1p-2, 0x0p+0, 0)
122 T(RD, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
123 T(RD, 0x1p+8, 0x1p+4, 0x0p+0, 0)
124 T(RD, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
125 T(RD, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
126 T(RD, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
127 T(RD, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
128 T(RD, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
129 T(RD, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
130 T(RD, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
131 T(RD, 0x1p+124, 0x1p+62, 0x0p+0, 0)
132 T(RD, 0x1p+126, 0x1p+63, 0x0p+0, 0)
133 T(RD, 0x1p+1020, 0x1p+510, 0x0p+0, 0)
134 T(RD, 0x1p+1022, 0x1p+511, 0x0p+0, 0)
135 T(RD, 0x1.ffffffffffffep-1023, 0x1.ffffffffffffep-512, -0x1p+0, INEXACT)
136 T(RD, 0x1.0000000000002p-1022, 0x1p-511, -0x1p+0, INEXACT)
137 T(RD, 0x1.ffffffffffff7p-1, 0x1.ffffffffffffbp-1, -0x1p-1, INEXACT)
138 T(RD, 0x1.ffffffffffff8p-1, 0x1.ffffffffffffbp-1, -0x1p+0, INEXACT)
139 T(RD, 0x1.ffffffffffff9p-1, 0x1.ffffffffffffcp-1, -0x1p-1, INEXACT)
140 T(RD, 0x1.ffffffffffffap-1, 0x1.ffffffffffffcp-1, -0x1p+0, INEXACT)
141 T(RD, 0x1.ffffffffffffbp-1, 0x1.ffffffffffffdp-1, -0x1p-1, INEXACT)
142 T(RD, 0x1.ffffffffffffcp-1, 0x1.ffffffffffffdp-1, -0x1p+0, INEXACT)
143 T(RD, 0x1.ffffffffffffdp-1, 0x1.ffffffffffffep-1, -0x1p-1, INEXACT)
144 T(RD, 0x1.ffffffffffffep-1, 0x1.ffffffffffffep-1, -0x1p+0, INEXACT)
145 T(RD, 0x1.0000000000002p+0, 0x1p+0, -0x1p+0, INEXACT)
146 T(RD, 0x1.0000000000003p+0, 0x1.0000000000001p+0, -0x1p-1, INEXACT)
147 T(RD, 0x1.0000000000004p+0, 0x1.0000000000001p+0, -0x1p+0, INEXACT)
148 T(RD, 0x1.0000000000005p+0, 0x1.0000000000002p+0, -0x1p-1, INEXACT)
149 T(RD, 0x1.0000000000006p+0, 0x1.0000000000002p+0, -0x1p+0, INEXACT)
150 T(RD, 0x1.0000000000007p+0, 0x1.0000000000003p+0, -0x1p-1, INEXACT)
151 T(RD, 0x1.ffffffffffffep+1021, 0x1.ffffffffffffep+510, -0x1p+0, INEXACT)
152 T(RD, 0x1.0000000000002p+1022, 0x1p+511, -0x1p+0, INEXACT)
153 T(RD, nan, nan, 0x0p+0, 0)
154 T(RD, nan, nan, 0x0p+0, 0)
155 T(RD, -0x1p-1074, nan, 0x0p+0, INVALID)
156 T(RD, -0x1p-1073, nan, 0x0p+0, INVALID)
157 T(RD, -0x1.4p-1072, nan, 0x0p+0, INVALID)
158 T(RD, -0x1.cp-1072, nan, 0x0p+0, INVALID)
159 T(RD, -0x1.2p-1071, nan, 0x0p+0, INVALID)
160 T(RD,-0x1.fffffffffffeep-1023, nan, 0x0p+0, INVALID)
161 T(RD,-0x1.ffffffffffff2p-1023, nan, 0x0p+0, INVALID)
162 T(RD,-0x1.ffffffffffff8p-1023, nan, 0x0p+0, INVALID)
163 T(RD,-0x1.ffffffffffffap-1023, nan, 0x0p+0, INVALID)
164 T(RD,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
165 T(RD,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
166 T(RD,-0x1.ffffffffffffdp-1022, nan, 0x0p+0, INVALID)
167 T(RD, -0x1p-1021, nan, 0x0p+0, INVALID)
168 T(RD,-0x1.0000000000001p-1021, nan, 0x0p+0, INVALID)
169 T(RD, -0x1p-52, nan, 0x0p+0, INVALID)
170 T(RD, -0x1p-51, nan, 0x0p+0, INVALID)
171 T(RD, -0x1.8p-51, nan, 0x0p+0, INVALID)
172 T(RD, -0x1p+0, nan, 0x0p+0, INVALID)
173 T(RD, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
174 T(RD, -0x1.8000000000004p+1, nan, 0x0p+0, INVALID)
175 T(RD, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
176 T(RD,-0x1.ffffffffffffcp+1021, nan, 0x0p+0, INVALID)
177 T(RD,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
178 T(RD,-0x1.fffffffffffffp+1022, nan, 0x0p+0, INVALID)
179 T(RD,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
180 T(RD, -inf, nan, 0x0p+0, INVALID)
181 T(RN, 0x1p-1072, 0x1p-536, 0x0p+0, 0)
182 T(RN, 0x1p-1024, 0x1p-512, 0x0p+0, 0)
183 T(RN, 0x1p-1020, 0x1p-510, 0x0p+0, 0)
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-126, 0x1p-63, 0x0p+0, 0)
188 T(RN, 0x1p-124, 0x1p-62, 0x0p+0, 0)
189 T(RN, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
190 T(RN, 0x1p-8, 0x1p-4, 0x0p+0, 0)
191 T(RN, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
192 T(RN, 0x1p-4, 0x1p-2, 0x0p+0, 0)
193 T(RN, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
194 T(RN, 0x1p+8, 0x1p+4, 0x0p+0, 0)
195 T(RN, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
196 T(RN, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
197 T(RN, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
198 T(RN, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
199 T(RN, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
200 T(RN, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
201 T(RN, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
202 T(RN, 0x1p+124, 0x1p+62, 0x0p+0, 0)
203 T(RN, 0x1p+126, 0x1p+63, 0x0p+0, 0)
204 T(RN, 0x1p+1020, 0x1p+510, 0x0p+0, 0)
205 T(RN, 0x1p+1022, 0x1p+511, 0x0p+0, 0)
206 T(RN, 0x1.ffffffffffffep-1023, 0x1.fffffffffffffp-512, 0x1.000008p-54, INEXACT)
207 T(RN, 0x1.0000000000002p-1022, 0x1.0000000000001p-511, 0x1.fffff8p-54, INEXACT)
208 T(RN, 0x1.ffffffffffff7p-1, 0x1.ffffffffffffbp-1, -0x1p-1, INEXACT)
209 T(RN, 0x1.ffffffffffff8p-1, 0x1.ffffffffffffcp-1, 0x1p-50, INEXACT)
210 T(RN, 0x1.ffffffffffff9p-1, 0x1.ffffffffffffcp-1, -0x1p-1, INEXACT)
211 T(RN, 0x1.ffffffffffffap-1, 0x1.ffffffffffffdp-1, 0x1.2p-51, INEXACT)
212 T(RN, 0x1.ffffffffffffbp-1, 0x1.ffffffffffffdp-1, -0x1p-1, INEXACT)
213 T(RN, 0x1.ffffffffffffcp-1, 0x1.ffffffffffffep-1, 0x1.000002p-52, INEXACT)
214 T(RN, 0x1.ffffffffffffdp-1, 0x1.ffffffffffffep-1, -0x1p-1, INEXACT)
215 T(RN, 0x1.ffffffffffffep-1, 0x1.fffffffffffffp-1, 0x1.000008p-54, INEXACT)
216 T(RN, 0x1.0000000000002p+0, 0x1.0000000000001p+0, 0x1.fffff8p-54, INEXACT)
217 T(RN, 0x1.0000000000003p+0, 0x1.0000000000001p+0, -0x1p-1, INEXACT)
218 T(RN, 0x1.0000000000004p+0, 0x1.0000000000002p+0, 0x1.fffffep-52, INEXACT)
219 T(RN, 0x1.0000000000005p+0, 0x1.0000000000002p+0, -0x1p-1, INEXACT)
220 T(RN, 0x1.0000000000006p+0, 0x1.0000000000003p+0, 0x1.2p-50, INEXACT)
221 T(RN, 0x1.0000000000007p+0, 0x1.0000000000003p+0, -0x1p-1, INEXACT)
222 T(RN, 0x1.ffffffffffffep+1021, 0x1.fffffffffffffp+510, 0x1.000008p-54, INEXACT)
223 T(RN, 0x1.0000000000002p+1022, 0x1.0000000000001p+511, 0x1.fffff8p-54, INEXACT)
224 T(RN, nan, nan, 0x0p+0, 0)
225 T(RN, -0x1p-1073, nan, 0x0p+0, INVALID)
226 T(RN, -0x1.4p-1072, nan, 0x0p+0, INVALID)
227 T(RN, -0x1.cp-1072, nan, 0x0p+0, INVALID)
228 T(RN, -0x1.2p-1071, nan, 0x0p+0, INVALID)
229 T(RN,-0x1.fffffffffffeep-1023, nan, 0x0p+0, INVALID)
230 T(RN,-0x1.ffffffffffff2p-1023, nan, 0x0p+0, INVALID)
231 T(RN,-0x1.ffffffffffff8p-1023, nan, 0x0p+0, INVALID)
232 T(RN,-0x1.ffffffffffffap-1023, nan, 0x0p+0, INVALID)
233 T(RN,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
234 T(RN,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
235 T(RN,-0x1.ffffffffffffdp-1022, nan, 0x0p+0, INVALID)
236 T(RN, -0x1p-1021, nan, 0x0p+0, INVALID)
237 T(RN,-0x1.0000000000001p-1021, nan, 0x0p+0, INVALID)
238 T(RN, -0x1p-52, nan, 0x0p+0, INVALID)
239 T(RN, -0x1p-51, nan, 0x0p+0, INVALID)
240 T(RN, -0x1.8p-51, nan, 0x0p+0, INVALID)
241 T(RN, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
242 T(RN, -0x1.8000000000004p+1, nan, 0x0p+0, INVALID)
243 T(RN, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
244 T(RN,-0x1.ffffffffffffcp+1021, nan, 0x0p+0, INVALID)
245 T(RN,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
246 T(RN,-0x1.fffffffffffffp+1022, nan, 0x0p+0, INVALID)
247 T(RN,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
248 T(RU, 0x1p-1072, 0x1p-536, 0x0p+0, 0)
249 T(RU, 0x1p-1024, 0x1p-512, 0x0p+0, 0)
250 T(RU, 0x1p-1020, 0x1p-510, 0x0p+0, 0)
251 T(RU, 0x1p-148, 0x1p-74, 0x0p+0, 0)
252 T(RU, 0x1p-146, 0x1p-73, 0x0p+0, 0)
253 T(RU, 0x1p-128, 0x1p-64, 0x0p+0, 0)
254 T(RU, 0x1p-126, 0x1p-63, 0x0p+0, 0)
255 T(RU, 0x1p-124, 0x1p-62, 0x0p+0, 0)
256 T(RU, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
257 T(RU, 0x1p-8, 0x1p-4, 0x0p+0, 0)
258 T(RU, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
259 T(RU, 0x1p-4, 0x1p-2, 0x0p+0, 0)
260 T(RU, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
261 T(RU, 0x1p+8, 0x1p+4, 0x0p+0, 0)
262 T(RU, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
263 T(RU, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
264 T(RU, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
265 T(RU, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
266 T(RU, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
267 T(RU, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
268 T(RU, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
269 T(RU, 0x1p+124, 0x1p+62, 0x0p+0, 0)
270 T(RU, 0x1p+126, 0x1p+63, 0x0p+0, 0)
271 T(RU, 0x1p+1020, 0x1p+510, 0x0p+0, 0)
272 T(RU, 0x1p+1022, 0x1p+511, 0x0p+0, 0)
273 T(RU, 0x1.ffffffffffffep-1023, 0x1.fffffffffffffp-512, 0x1p-54, INEXACT)
274 T(RU, 0x1.0000000000002p-1022, 0x1.0000000000001p-511, 0x1.fffff8p-54, INEXACT)
275 T(RU, 0x1.ffffffffffff7p-1, 0x1.ffffffffffffcp-1, 0x1p-1, INEXACT)
276 T(RU, 0x1.ffffffffffff8p-1, 0x1.ffffffffffffcp-1, 0x1p-50, INEXACT)
277 T(RU, 0x1.ffffffffffff9p-1, 0x1.ffffffffffffdp-1, 0x1p-1, INEXACT)
278 T(RU, 0x1.ffffffffffffap-1, 0x1.ffffffffffffdp-1, 0x1.2p-51, INEXACT)
279 T(RU, 0x1.ffffffffffffbp-1, 0x1.ffffffffffffep-1, 0x1p-1, INEXACT)
280 T(RU, 0x1.ffffffffffffcp-1, 0x1.ffffffffffffep-1, 0x1p-52, INEXACT)
281 T(RU, 0x1.ffffffffffffdp-1, 0x1.fffffffffffffp-1, 0x1p-1, INEXACT)
282 T(RU, 0x1.ffffffffffffep-1, 0x1.fffffffffffffp-1, 0x1p-54, INEXACT)
283 T(RU, 0x1.0000000000002p+0, 0x1.0000000000001p+0, 0x1.fffff8p-54, INEXACT)
284 T(RU, 0x1.0000000000003p+0, 0x1.0000000000002p+0, 0x1p-1, INEXACT)
285 T(RU, 0x1.0000000000004p+0, 0x1.0000000000002p+0, 0x1.fffffep-52, INEXACT)
286 T(RU, 0x1.0000000000005p+0, 0x1.0000000000003p+0, 0x1p-1, INEXACT)
287 T(RU, 0x1.0000000000006p+0, 0x1.0000000000003p+0, 0x1.2p-50, INEXACT)
288 T(RU, 0x1.0000000000007p+0, 0x1.0000000000004p+0, 0x1p-1, INEXACT)
289 T(RU, 0x1.ffffffffffffep+1021, 0x1.fffffffffffffp+510, 0x1p-54, INEXACT)
290 T(RU, 0x1.0000000000002p+1022, 0x1.0000000000001p+511, 0x1.fffff8p-54, INEXACT)
291 T(RU, nan, nan, 0x0p+0, 0)
292 T(RU, nan, nan, 0x0p+0, 0)
293 T(RU, -0x1p-1074, nan, 0x0p+0, INVALID)
294 T(RU, -0x1p-1073, nan, 0x0p+0, INVALID)
295 T(RU, -0x1.4p-1072, nan, 0x0p+0, INVALID)
296 T(RU, -0x1.cp-1072, nan, 0x0p+0, INVALID)
297 T(RU, -0x1.2p-1071, nan, 0x0p+0, INVALID)
298 T(RU,-0x1.fffffffffffeep-1023, nan, 0x0p+0, INVALID)
299 T(RU,-0x1.ffffffffffff2p-1023, nan, 0x0p+0, INVALID)
300 T(RU,-0x1.ffffffffffff8p-1023, nan, 0x0p+0, INVALID)
301 T(RU,-0x1.ffffffffffffap-1023, nan, 0x0p+0, INVALID)
302 T(RU,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
303 T(RU,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
304 T(RU,-0x1.ffffffffffffdp-1022, nan, 0x0p+0, INVALID)
305 T(RU, -0x1p-1021, nan, 0x0p+0, INVALID)
306 T(RU,-0x1.0000000000001p-1021, nan, 0x0p+0, INVALID)
307 T(RU, -0x1p-52, nan, 0x0p+0, INVALID)
308 T(RU, -0x1p-51, nan, 0x0p+0, INVALID)
309 T(RU, -0x1.8p-51, nan, 0x0p+0, INVALID)
310 T(RU, -0x1p+0, nan, 0x0p+0, INVALID)
311 T(RU, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
312 T(RU, -0x1.8000000000004p+1, nan, 0x0p+0, INVALID)
313 T(RU, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
314 T(RU,-0x1.ffffffffffffcp+1021, nan, 0x0p+0, INVALID)
315 T(RU,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
316 T(RU,-0x1.fffffffffffffp+1022, nan, 0x0p+0, INVALID)
317 T(RU,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
318 T(RU, -inf, nan, 0x0p+0, INVALID)
319 T(RZ, 0x1p-1072, 0x1p-536, 0x0p+0, 0)
320 T(RZ, 0x1p-1024, 0x1p-512, 0x0p+0, 0)
321 T(RZ, 0x1p-1020, 0x1p-510, 0x0p+0, 0)
322 T(RZ, 0x1p-148, 0x1p-74, 0x0p+0, 0)
323 T(RZ, 0x1p-146, 0x1p-73, 0x0p+0, 0)
324 T(RZ, 0x1p-128, 0x1p-64, 0x0p+0, 0)
325 T(RZ, 0x1p-126, 0x1p-63, 0x0p+0, 0)
326 T(RZ, 0x1p-124, 0x1p-62, 0x0p+0, 0)
327 T(RZ, 0x1.2p-15, 0x1.8p-8, 0x0p+0, 0)
328 T(RZ, 0x1p-8, 0x1p-4, 0x0p+0, 0)
329 T(RZ, 0x1.2p-5, 0x1.8p-3, 0x0p+0, 0)
330 T(RZ, 0x1p-4, 0x1p-2, 0x0p+0, 0)
331 T(RZ, 0x1.2p+3, 0x1.8p+1, 0x0p+0, 0)
332 T(RZ, 0x1p+8, 0x1p+4, 0x0p+0, 0)
333 T(RZ, 0x1.2p+11, 0x1.8p+5, 0x0p+0, 0)
334 T(RZ, 0x1.9f24p+14, 0x1.46p+7, 0x0p+0, 0)
335 T(RZ, 0x1.b3c4p+14, 0x1.4ep+7, 0x0p+0, 0)
336 T(RZ, 0x1.d3a4p+14, 0x1.5ap+7, 0x0p+0, 0)
337 T(RZ, 0x1.f4a4p+14, 0x1.66p+7, 0x0p+0, 0)
338 T(RZ, 0x1.ffe4p+14, 0x1.6ap+7, 0x0p+0, 0)
339 T(RZ, 0x1.2p+21, 0x1.8p+10, 0x0p+0, 0)
340 T(RZ, 0x1p+124, 0x1p+62, 0x0p+0, 0)
341 T(RZ, 0x1p+126, 0x1p+63, 0x0p+0, 0)
342 T(RZ, 0x1p+1020, 0x1p+510, 0x0p+0, 0)
343 T(RZ, 0x1p+1022, 0x1p+511, 0x0p+0, 0)
344 T(RZ, 0x1.ffffffffffffep-1023, 0x1.ffffffffffffep-512, -0x1p+0, INEXACT)
345 T(RZ, 0x1.0000000000002p-1022, 0x1p-511, -0x1p+0, INEXACT)
346 T(RZ, 0x1.ffffffffffff7p-1, 0x1.ffffffffffffbp-1, -0x1p-1, INEXACT)
347 T(RZ, 0x1.ffffffffffff8p-1, 0x1.ffffffffffffbp-1, -0x1p+0, INEXACT)
348 T(RZ, 0x1.ffffffffffff9p-1, 0x1.ffffffffffffcp-1, -0x1p-1, INEXACT)
349 T(RZ, 0x1.ffffffffffffap-1, 0x1.ffffffffffffcp-1, -0x1p+0, INEXACT)
350 T(RZ, 0x1.ffffffffffffbp-1, 0x1.ffffffffffffdp-1, -0x1p-1, INEXACT)
351 T(RZ, 0x1.ffffffffffffcp-1, 0x1.ffffffffffffdp-1, -0x1p+0, INEXACT)
352 T(RZ, 0x1.ffffffffffffdp-1, 0x1.ffffffffffffep-1, -0x1p-1, INEXACT)
353 T(RZ, 0x1.ffffffffffffep-1, 0x1.ffffffffffffep-1, -0x1p+0, INEXACT)
354 T(RZ, 0x1.0000000000002p+0, 0x1p+0, -0x1p+0, INEXACT)
355 T(RZ, 0x1.0000000000003p+0, 0x1.0000000000001p+0, -0x1p-1, INEXACT)
356 T(RZ, 0x1.0000000000004p+0, 0x1.0000000000001p+0, -0x1p+0, INEXACT)
357 T(RZ, 0x1.0000000000005p+0, 0x1.0000000000002p+0, -0x1p-1, INEXACT)
358 T(RZ, 0x1.0000000000006p+0, 0x1.0000000000002p+0, -0x1p+0, INEXACT)
359 T(RZ, 0x1.0000000000007p+0, 0x1.0000000000003p+0, -0x1p-1, INEXACT)
360 T(RZ, 0x1.ffffffffffffep+1021, 0x1.ffffffffffffep+510, -0x1p+0, INEXACT)
361 T(RZ, 0x1.0000000000002p+1022, 0x1p+511, -0x1p+0, INEXACT)
362 T(RZ, nan, nan, 0x0p+0, 0)
363 T(RZ, nan, nan, 0x0p+0, 0)
364 T(RZ, -0x1p-1074, nan, 0x0p+0, INVALID)
365 T(RZ, -0x1p-1073, nan, 0x0p+0, INVALID)
366 T(RZ, -0x1.4p-1072, nan, 0x0p+0, INVALID)
367 T(RZ, -0x1.cp-1072, nan, 0x0p+0, INVALID)
368 T(RZ, -0x1.2p-1071, nan, 0x0p+0, INVALID)
369 T(RZ,-0x1.fffffffffffeep-1023, nan, 0x0p+0, INVALID)
370 T(RZ,-0x1.ffffffffffff2p-1023, nan, 0x0p+0, INVALID)
371 T(RZ,-0x1.ffffffffffff8p-1023, nan, 0x0p+0, INVALID)
372 T(RZ,-0x1.ffffffffffffap-1023, nan, 0x0p+0, INVALID)
373 T(RZ,-0x1.ffffffffffffcp-1023, nan, 0x0p+0, INVALID)
374 T(RZ,-0x1.ffffffffffffep-1023, nan, 0x0p+0, INVALID)
375 T(RZ,-0x1.ffffffffffffdp-1022, nan, 0x0p+0, INVALID)
376 T(RZ, -0x1p-1021, nan, 0x0p+0, INVALID)
377 T(RZ,-0x1.0000000000001p-1021, nan, 0x0p+0, INVALID)
378 T(RZ, -0x1p-52, nan, 0x0p+0, INVALID)
379 T(RZ, -0x1p-51, nan, 0x0p+0, INVALID)
380 T(RZ, -0x1.8p-51, nan, 0x0p+0, INVALID)
381 T(RZ, -0x1p+0, nan, 0x0p+0, INVALID)
382 T(RZ, -0x1.0000000000002p+1, nan, 0x0p+0, INVALID)
383 T(RZ, -0x1.8000000000004p+1, nan, 0x0p+0, INVALID)
384 T(RZ, -0x1.ffffffffffffbp+1, nan, 0x0p+0, INVALID)
385 T(RZ,-0x1.ffffffffffffcp+1021, nan, 0x0p+0, INVALID)
386 T(RZ,-0x1.0000000000002p+1022, nan, 0x0p+0, INVALID)
387 T(RZ,-0x1.fffffffffffffp+1022, nan, 0x0p+0, INVALID)
388 T(RZ,-0x1.0000000000002p+1023, nan, 0x0p+0, INVALID)
389 T(RZ, -inf, nan, 0x0p+0, INVALID)