1 // Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue
2 // Mountain View, California 94043 All rights reserved.
4 // Any person is hereby authorized to download, copy, use, create bug fixes,
5 // and distribute, subject to the following conditions:
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
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.
39 T(RN
, 0x1p
-30, 0x1p
-30, -0x1.555556p
-10, INEXACT
)
40 T(RN
, -0x1p
-30, -0x1p
-30, 0x1.555556p
-10, INEXACT
)
41 T(RN
, 0x1p
-1022, 0x1p
-1022, 0x0p
+0, INEXACT
)
42 T(RN
, -0x1p
-1022, -0x1p
-1022, 0x0p
+0, INEXACT
)
43 T(RN
, 0x1p
-1074, 0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
44 T(RN
, -0x1p
-1074, -0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
45 T(RN
, 0x0p
+0, 0x0p
+0, 0x0p
+0, 0)
46 T(RN
, -0x0p
+0, -0x0p
+0, 0x0p
+0, 0)
47 T(RZ
, 0x0p
+0, 0x0p
+0, 0x0p
+0, 0)
48 T(RZ
, -0x0p
+0, -0x0p
+0, 0x0p
+0, 0)
49 T(RU
, 0x0p
+0, 0x0p
+0, 0x0p
+0, 0)
50 T(RU
, -0x0p
+0, -0x0p
+0, 0x0p
+0, 0)
51 T(RD
, 0x0p
+0, 0x0p
+0, 0x0p
+0, 0)
52 T(RD
, -0x0p
+0, -0x0p
+0, 0x0p
+0, 0)
53 // tand(nan or inf) is nan
54 T(RN
, inf
, nan
, 0x0p
+0, INVALID
)
55 T(RN
, -inf
, nan
, 0x0p
+0, INVALID
)
56 T(RN
, nan
, nan
, 0x0p
+0, 0)
57 T(RN
, nan
, nan
, 0x0p
+0, 0)
58 // tand(+-pi/4) is +-1 within 16 ulp
59 T(RN
, 0x1.921fb54442d18p
-1, 0x1.fffffffffffffp
-1, -0x1.cb3b3ap
-2, INEXACT
)
60 T(RN
, -0x1.921fb54442d18p
-1, -0x1.fffffffffffffp
-1, 0x1.cb3b3ap
-2, INEXACT
)
61 T(RZ
, 0x1.921fb54442d18p
-1, 0x1.fffffffffffffp
-1, -0x1.cb3b38p
-2, INEXACT
)
62 T(RZ
, -0x1.921fb54442d18p
-1, -0x1.fffffffffffffp
-1, 0x1.cb3b38p
-2, INEXACT
)
63 T(RU
, 0x1.921fb54442d18p
-1, 0x1p
+0, 0x1.1a6264p
-2, INEXACT
)
64 T(RU
, -0x1.921fb54442d18p
-1, -0x1.fffffffffffffp
-1, 0x1.cb3b3ap
-2, INEXACT
)
65 T(RD
, 0x1.921fb54442d18p
-1, 0x1.fffffffffffffp
-1, -0x1.cb3b3ap
-2, INEXACT
)
66 T(RD
, -0x1.921fb54442d18p
-1, -0x1p
+0, -0x1.1a6264p
-2, INEXACT
)
67 T(RD
, 0x1p
-1022, 0x1p
-1022, 0x0p
+0, INEXACT
)
68 T(RD
, 0x1.0000000000001p
-1022, 0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
69 T(RD
, 0x1.0000000000002p
-1022, 0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
70 T(RD
, 0x1.ffffffffffffbp
-1022, 0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
71 T(RD
, 0x1p
-1021, 0x1p
-1021, 0x0p
+0, INEXACT
)
72 T(RD
, 0x1.0000000000003p
-1021, 0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
73 T(RD
, 0x1p
-1020, 0x1p
-1020, 0x0p
+0, INEXACT
)
74 T(RD
, 0x1.8p
-27, 0x1.8p
-27, -0x1.200002p
-2, INEXACT
)
75 T(RD
, 0x1p
-26, 0x1p
-26, -0x1.555556p
-2, INEXACT
)
76 T(RD
, 0x1p
-1074, 0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
77 T(RD
, 0x1p
-1073, 0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
78 T(RD
, 0x1.2p
-1071, 0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
79 T(RD
, 0x1p
-1024, 0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
80 T(RD
, 0x1p
-1023, 0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
81 T(RD
, 0x1.ffffffffffffcp
-1023, 0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
82 T(RD
, 0x1.ffffffffffffep
-1023, 0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
83 T(RD
, nan
, nan
, 0x0p
+0, 0)
84 T(RD
, nan
, nan
, 0x0p
+0, 0)
85 T(RD
, inf
, nan
, 0x0p
+0, INVALID
)
86 T(RD
, -inf
, nan
, 0x0p
+0, INVALID
)
87 T(RD
, -0x1p
-1022,-0x1.0000000000001p
-1022, -0x1p
+0, INEXACT
)
88 T(RD
,-0x1.0000000000001p
-1022,-0x1.0000000000002p
-1022, -0x1p
+0, INEXACT
)
89 T(RD
,-0x1.0000000000002p
-1022,-0x1.0000000000003p
-1022, -0x1p
+0, INEXACT
)
90 T(RD
, -0x1p
-1021,-0x1.0000000000001p
-1021, -0x1p
+0, INEXACT
)
91 T(RD
, -0x1p
-1020,-0x1.0000000000001p
-1020, -0x1p
+0, INEXACT
)
92 T(RD
, -0x1.8p
-27, -0x1.8000000000001p
-27, -0x1.7p
-1, INEXACT
)
93 T(RD
, -0x1p
-26, -0x1.0000000000001p
-26, -0x1.555556p
-1, INEXACT
)
94 T(RD
, -0x1p
-1074, -0x1p
-1073, -0x1p
+0, INEXACT
|UNDERFLOW
)
95 T(RD
, -0x1p
-1073, -0x1.8p
-1073, -0x1p
+0, INEXACT
|UNDERFLOW
)
96 T(RD
, -0x1p
-1024,-0x1.0000000000004p
-1024, -0x1p
+0, INEXACT
|UNDERFLOW
)
97 T(RD
, -0x1p
-1023,-0x1.0000000000002p
-1023, -0x1p
+0, INEXACT
|UNDERFLOW
)
98 T(RD
,-0x1.ffffffffffffcp
-1023,-0x1.ffffffffffffep
-1023, -0x1p
+0, INEXACT
|UNDERFLOW
)
99 T(RD
,-0x1.ffffffffffffep
-1023, -0x1p
-1022, -0x1p
+0, INEXACT
|UNDERFLOW
)
100 T(RN
, 0x1.0000000000001p
-1022, 0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
101 T(RN
, 0x1.0000000000002p
-1022, 0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
102 T(RN
, 0x1.ffffffffffffbp
-1022, 0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
103 T(RN
, 0x1p
-1021, 0x1p
-1021, 0x0p
+0, INEXACT
)
104 T(RN
, 0x1.0000000000003p
-1021, 0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
105 T(RN
, 0x1p
-1020, 0x1p
-1020, 0x0p
+0, INEXACT
)
106 T(RN
, 0x1.8p
-27, 0x1.8p
-27, -0x1.2p
-2, INEXACT
)
107 T(RN
, 0x1p
-26, 0x1p
-26, -0x1.555556p
-2, INEXACT
)
108 T(RN
,-0x1.0000000000001p
-1022,-0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
109 T(RN
,-0x1.0000000000002p
-1022,-0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
110 T(RN
,-0x1.ffffffffffffbp
-1022,-0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
111 T(RN
, -0x1p
-1021, -0x1p
-1021, 0x0p
+0, INEXACT
)
112 T(RN
,-0x1.0000000000003p
-1021,-0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
113 T(RN
, -0x1p
-1020, -0x1p
-1020, 0x0p
+0, INEXACT
)
114 T(RN
, -0x1.8p
-27, -0x1.8p
-27, 0x1.2p
-2, INEXACT
)
115 T(RN
, -0x1p
-26, -0x1p
-26, 0x1.555556p
-2, INEXACT
)
116 T(RN
, 0x1p
-1073, 0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
117 T(RN
, 0x1.2p
-1071, 0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
118 T(RN
, 0x1p
-1024, 0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
119 T(RN
, 0x1p
-1023, 0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
120 T(RN
, 0x1.ffffffffffffcp
-1023, 0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
121 T(RN
, 0x1.ffffffffffffep
-1023, 0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
122 T(RN
, -0x1p
-1073, -0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
123 T(RN
, -0x1.2p
-1071, -0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
124 T(RN
, -0x1p
-1024, -0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
125 T(RN
, -0x1p
-1023, -0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
126 T(RN
,-0x1.ffffffffffffcp
-1023,-0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
127 T(RN
,-0x1.ffffffffffffep
-1023,-0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
128 T(RU
, -0x1p
-1022, -0x1p
-1022, 0x0p
+0, INEXACT
)
129 T(RU
,-0x1.0000000000001p
-1022,-0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
130 T(RU
,-0x1.0000000000002p
-1022,-0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
131 T(RU
,-0x1.ffffffffffffbp
-1022,-0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
132 T(RU
, -0x1p
-1021, -0x1p
-1021, 0x0p
+0, INEXACT
)
133 T(RU
,-0x1.0000000000003p
-1021,-0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
134 T(RU
, -0x1p
-1020, -0x1p
-1020, 0x0p
+0, INEXACT
)
135 T(RU
, -0x1.8p
-27, -0x1.8p
-27, 0x1.200002p
-2, INEXACT
)
136 T(RU
, -0x1p
-26, -0x1p
-26, 0x1.555556p
-2, INEXACT
)
137 T(RU
, -0x1p
-1074, -0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
138 T(RU
, -0x1p
-1073, -0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
139 T(RU
, -0x1.2p
-1071, -0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
140 T(RU
, -0x1p
-1024, -0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
141 T(RU
, -0x1p
-1023, -0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
142 T(RU
,-0x1.ffffffffffffcp
-1023,-0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
143 T(RU
,-0x1.ffffffffffffep
-1023,-0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
144 T(RU
, nan
, nan
, 0x0p
+0, 0)
145 T(RU
, nan
, nan
, 0x0p
+0, 0)
146 T(RU
, inf
, nan
, 0x0p
+0, INVALID
)
147 T(RU
, -inf
, nan
, 0x0p
+0, INVALID
)
148 T(RU
, 0x1p
-1022, 0x1.0000000000001p
-1022, 0x1p
+0, INEXACT
)
149 T(RU
, 0x1.0000000000001p
-1022, 0x1.0000000000002p
-1022, 0x1p
+0, INEXACT
)
150 T(RU
, 0x1.0000000000002p
-1022, 0x1.0000000000003p
-1022, 0x1p
+0, INEXACT
)
151 T(RU
, 0x1p
-1021, 0x1.0000000000001p
-1021, 0x1p
+0, INEXACT
)
152 T(RU
, 0x1p
-1020, 0x1.0000000000001p
-1020, 0x1p
+0, INEXACT
)
153 T(RU
, 0x1.8p
-27, 0x1.8000000000001p
-27, 0x1.7p
-1, INEXACT
)
154 T(RU
, 0x1p
-26, 0x1.0000000000001p
-26, 0x1.555556p
-1, INEXACT
)
155 T(RU
, 0x1p
-1074, 0x1p
-1073, 0x1p
+0, INEXACT
|UNDERFLOW
)
156 T(RU
, 0x1p
-1073, 0x1.8p
-1073, 0x1p
+0, INEXACT
|UNDERFLOW
)
157 T(RU
, 0x1p
-1024, 0x1.0000000000004p
-1024, 0x1p
+0, INEXACT
|UNDERFLOW
)
158 T(RU
, 0x1p
-1023, 0x1.0000000000002p
-1023, 0x1p
+0, INEXACT
|UNDERFLOW
)
159 T(RU
, 0x1.ffffffffffffcp
-1023, 0x1.ffffffffffffep
-1023, 0x1p
+0, INEXACT
|UNDERFLOW
)
160 T(RU
, 0x1.ffffffffffffep
-1023, 0x1p
-1022, 0x1p
+0, INEXACT
|UNDERFLOW
)
161 T(RZ
, 0x1p
-1022, 0x1p
-1022, 0x0p
+0, INEXACT
)
162 T(RZ
, 0x1.0000000000001p
-1022, 0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
163 T(RZ
, 0x1.0000000000002p
-1022, 0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
164 T(RZ
, 0x1.ffffffffffffbp
-1022, 0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
165 T(RZ
, 0x1p
-1021, 0x1p
-1021, 0x0p
+0, INEXACT
)
166 T(RZ
, 0x1.0000000000003p
-1021, 0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
167 T(RZ
, 0x1p
-1020, 0x1p
-1020, 0x0p
+0, INEXACT
)
168 T(RZ
, 0x1.8p
-27, 0x1.8p
-27, -0x1.2p
-2, INEXACT
)
169 T(RZ
, 0x1p
-26, 0x1p
-26, -0x1.555554p
-2, INEXACT
)
170 T(RZ
, -0x1p
-1022, -0x1p
-1022, 0x0p
+0, INEXACT
)
171 T(RZ
,-0x1.0000000000001p
-1022,-0x1.0000000000001p
-1022, 0x0p
+0, INEXACT
)
172 T(RZ
,-0x1.0000000000002p
-1022,-0x1.0000000000002p
-1022, 0x0p
+0, INEXACT
)
173 T(RZ
,-0x1.ffffffffffffbp
-1022,-0x1.ffffffffffffbp
-1022, 0x0p
+0, INEXACT
)
174 T(RZ
, -0x1p
-1021, -0x1p
-1021, 0x0p
+0, INEXACT
)
175 T(RZ
,-0x1.0000000000003p
-1021,-0x1.0000000000003p
-1021, 0x0p
+0, INEXACT
)
176 T(RZ
, -0x1p
-1020, -0x1p
-1020, 0x0p
+0, INEXACT
)
177 T(RZ
, -0x1.8p
-27, -0x1.8p
-27, 0x1.2p
-2, INEXACT
)
178 T(RZ
, -0x1p
-26, -0x1p
-26, 0x1.555554p
-2, INEXACT
)
179 T(RZ
, 0x1p
-1074, 0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
180 T(RZ
, 0x1p
-1073, 0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
181 T(RZ
, 0x1.2p
-1071, 0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
182 T(RZ
, 0x1p
-1024, 0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
183 T(RZ
, 0x1p
-1023, 0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
184 T(RZ
, 0x1.ffffffffffffcp
-1023, 0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
185 T(RZ
, 0x1.ffffffffffffep
-1023, 0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
186 T(RZ
, -0x1p
-1074, -0x1p
-1074, 0x0p
+0, INEXACT
|UNDERFLOW
)
187 T(RZ
, -0x1p
-1073, -0x1p
-1073, 0x0p
+0, INEXACT
|UNDERFLOW
)
188 T(RZ
, -0x1.2p
-1071, -0x1.2p
-1071, 0x0p
+0, INEXACT
|UNDERFLOW
)
189 T(RZ
, -0x1p
-1024, -0x1p
-1024, 0x0p
+0, INEXACT
|UNDERFLOW
)
190 T(RZ
, -0x1p
-1023, -0x1p
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
191 T(RZ
,-0x1.ffffffffffffcp
-1023,-0x1.ffffffffffffcp
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
192 T(RZ
,-0x1.ffffffffffffep
-1023,-0x1.ffffffffffffep
-1023, 0x0p
+0, INEXACT
|UNDERFLOW
)
193 T(RZ
, nan
, nan
, 0x0p
+0, 0)
194 T(RZ
, nan
, nan
, 0x0p
+0, 0)
195 T(RZ
, inf
, nan
, 0x0p
+0, INVALID
)
196 T(RZ
, -inf
, nan
, 0x0p
+0, INVALID
)