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 // asind(+-1) is +-pi/2 38 T(RN, 0x1p+0, 0x1.921fb54442d18p+0, -0x1.1a6264p-2, INEXACT) 39 T(RN, -0x1p+0, -0x1.921fb54442d18p+0, 0x1.1a6264p-2, INEXACT) 40 // asind(+-(1 - tiny)) :=: +-(pi/2-sqrt(2*tiny)) 41 T(RN, 0x1.fffffffffffffp-1, 0x1.921fb50442d18p+0, -0x1.1a6264p-2, INEXACT) 42 T(RN, -0x1.fffffffffffffp-1, -0x1.921fb50442d18p+0, 0x1.1a6264p-2, INEXACT) 43 T(RZ, 0x1.fffffffffffffp-1, 0x1.921fb50442d18p+0, -0x1.1a6264p-2, INEXACT) 44 T(RZ, -0x1.fffffffffffffp-1, -0x1.921fb50442d18p+0, 0x1.1a6264p-2, INEXACT) 45 T(RU, 0x1.fffffffffffffp-1, 0x1.921fb50442d19p+0, 0x1.72cecep-1, INEXACT) 46 T(RU, -0x1.fffffffffffffp-1, -0x1.921fb50442d18p+0, 0x1.1a6264p-2, INEXACT) 47 T(RD, 0x1.fffffffffffffp-1, 0x1.921fb50442d18p+0, -0x1.1a6264p-2, INEXACT) 48 T(RD, -0x1.fffffffffffffp-1, -0x1.921fb50442d19p+0, -0x1.72cecep-1, INEXACT) 49 // asind(tiny) is tiny (only in nearest mode) 50 T(RN, 0x1p-30, 0x1p-30, -0x1.555556p-11, INEXACT) 51 T(RN, -0x1p-30, -0x1p-30, 0x1.555556p-11, INEXACT) 52 T(RN, 0x1p-1022, 0x1p-1022, 0x0p+0, INEXACT) 53 T(RN, -0x1p-1022, -0x1p-1022, 0x0p+0, INEXACT) 54 // asind(+-0) is +-0 55 T(RN, 0x0p+0, 0x0p+0, 0x0p+0, 0) 56 T(RN, -0x0p+0, -0x0p+0, 0x0p+0, 0) 57 T(RZ, 0x0p+0, 0x0p+0, 0x0p+0, 0) 58 T(RZ, -0x0p+0, -0x0p+0, 0x0p+0, 0) 59 T(RU, 0x0p+0, 0x0p+0, 0x0p+0, 0) 60 T(RU, -0x0p+0, -0x0p+0, 0x0p+0, 0) 61 T(RD, 0x0p+0, 0x0p+0, 0x0p+0, 0) 62 T(RD, -0x0p+0, -0x0p+0, 0x0p+0, 0) 63 // random arguments between -1 and 1 64 T(RN, -0x1.13284b2b5006dp-2, -0x1.1694c32f76fb4p-2, 0x1.5696f2p-5, INEXACT) 65 T(RN, 0x1.6ca8dfb825911p-1, 0x1.95d813a6096cbp-1, 0x1.78f10cp-2, INEXACT) 66 T(RN, 0x1.c2ca609de7505p-1, 0x1.13a9e309847cp+0, -0x1.36acdp-2, INEXACT) 67 T(RN, -0x1.55f11fba96889p-1, -0x1.7670071abc478p-1, -0x1.8f1eb2p-3, INEXACT) 68 T(RN, -0x1.15679e27084ddp-2, -0x1.18ea3e9808b2fp-2, -0x1.e6126ap-2, INEXACT) 69 T(RN, -0x1.41e131b093c41p-5, -0x1.41f6695577251p-5, 0x1.d176p-2, INEXACT) 70 T(RN, 0x1.281b0d18455f5p-1, 0x1.3bbdb8b39a78fp-1, -0x1.c9fc3ep-5, INEXACT) 71 T(RN, 0x1.b5ce34a51b239p-1, 0x1.0695ba906e921p+0, 0x1.c52b98p-2, INEXACT) 72 T(RN, -0x1.583481079de4dp-3, -0x1.59d8b525cfa06p-3, 0x1.16bff4p-3, INEXACT) 73 T(RN, -0x1.ea8223103b871p-1, -0x1.47aff79a824b2p+0, -0x1.511752p-2, INEXACT) 74 // exception cases 75 T(RN, 0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 76 T(RZ, 0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 77 T(RU, 0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 78 T(RD, 0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 79 T(RN, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 80 T(RN, 0x1p+1, nan, 0x0p+0, INVALID) 81 T(RN, 0x1.0000000000001p+16, nan, 0x0p+0, INVALID) 82 T(RN, -0x1.fffffffffffffp+16, nan, 0x0p+0, INVALID) 83 T(RN, nan, nan, 0x0p+0, 0) 84 T(RN, nan, nan, 0x0p+0, 0) 85 T(RZ, nan, nan, 0x0p+0, 0) 86 T(RU, nan, nan, 0x0p+0, 0) 87 T(RD, nan, nan, 0x0p+0, 0) 88 T(RZ, nan, nan, 0x0p+0, 0) 89 T(RU, nan, nan, 0x0p+0, 0) 90 T(RD, nan, nan, 0x0p+0, 0) 91 T(RD, 0x1.0000000000001p-1022, 0x1.0000000000001p-1022, 0x0p+0, INEXACT) 92 T(RD, 0x1.0000000000002p-1022, 0x1.0000000000002p-1022, 0x0p+0, INEXACT) 93 T(RD, 0x1p-1021, 0x1p-1021, 0x0p+0, INEXACT) 94 T(RD, 0x1p-1020, 0x1p-1020, 0x0p+0, INEXACT) 95 T(RD,-0x1.0000000000001p-1022,-0x1.0000000000002p-1022, -0x1p+0, INEXACT) 96 T(RD,-0x1.0000000000002p-1022,-0x1.0000000000003p-1022, -0x1p+0, INEXACT) 97 T(RD, -0x1p-1021,-0x1.0000000000001p-1021, -0x1p+0, INEXACT) 98 T(RD, -0x1p-1020,-0x1.0000000000001p-1020, -0x1p+0, INEXACT) 99 T(RD, 0x1p-1074, 0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 100 T(RD, 0x1p-1073, 0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 101 T(RD, 0x1p-1024, 0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 102 T(RD, 0x1p-1023, 0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 103 T(RD, 0x1.ffffffffffffcp-1023, 0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 104 T(RD, 0x1.ffffffffffffep-1023, 0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 105 T(RD, 0x1p-1022, 0x1p-1022, 0x0p+0, INEXACT) 106 T(RD, -0x1p-1074, -0x1p-1073, -0x1p+0, INEXACT|UNDERFLOW) 107 T(RD, -0x1p-1073, -0x1.8p-1073, -0x1p+0, INEXACT|UNDERFLOW) 108 T(RD, -0x1p-1024,-0x1.0000000000004p-1024, -0x1p+0, INEXACT|UNDERFLOW) 109 T(RD, -0x1p-1023,-0x1.0000000000002p-1023, -0x1p+0, INEXACT|UNDERFLOW) 110 T(RD,-0x1.ffffffffffffcp-1023,-0x1.ffffffffffffep-1023, -0x1p+0, INEXACT|UNDERFLOW) 111 T(RD,-0x1.ffffffffffffep-1023, -0x1p-1022, -0x1p+0, INEXACT|UNDERFLOW) 112 T(RD, -0x1p-1022,-0x1.0000000000001p-1022, -0x1p+0, INEXACT) 113 T(RD, 0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 114 T(RD, 0x1p+1, nan, 0x0p+0, INVALID) 115 T(RD, 0x1p+2, nan, 0x0p+0, INVALID) 116 T(RD, 0x1p+1022, nan, 0x0p+0, INVALID) 117 T(RD, 0x1p+1023, nan, 0x0p+0, INVALID) 118 T(RD, 0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 119 T(RD, 0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 120 T(RD, inf, nan, 0x0p+0, INVALID) 121 T(RD, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 122 T(RD, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 123 T(RD, -0x1p+1, nan, 0x0p+0, INVALID) 124 T(RD, -0x1p+2, nan, 0x0p+0, INVALID) 125 T(RD, -0x1p+1022, nan, 0x0p+0, INVALID) 126 T(RD, -0x1p+1023, nan, 0x0p+0, INVALID) 127 T(RD,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 128 T(RD,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 129 T(RD, -inf, nan, 0x0p+0, INVALID) 130 T(RN, 0x1.0000000000001p-1022, 0x1.0000000000001p-1022, 0x0p+0, INEXACT) 131 T(RN, 0x1.0000000000002p-1022, 0x1.0000000000002p-1022, 0x0p+0, INEXACT) 132 T(RN, 0x1p-1021, 0x1p-1021, 0x0p+0, INEXACT) 133 T(RN, 0x1p-1020, 0x1p-1020, 0x0p+0, INEXACT) 134 T(RN,-0x1.0000000000001p-1022,-0x1.0000000000001p-1022, 0x0p+0, INEXACT) 135 T(RN,-0x1.0000000000002p-1022,-0x1.0000000000002p-1022, 0x0p+0, INEXACT) 136 T(RN, -0x1p-1021, -0x1p-1021, 0x0p+0, INEXACT) 137 T(RN, -0x1p-1020, -0x1p-1020, 0x0p+0, INEXACT) 138 T(RN, 0x1p-1074, 0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 139 T(RN, 0x1p-1073, 0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 140 T(RN, 0x1p-1024, 0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 141 T(RN, 0x1p-1023, 0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 142 T(RN, 0x1.ffffffffffffcp-1023, 0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 143 T(RN, 0x1.ffffffffffffep-1023, 0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 144 T(RN, -0x1p-1074, -0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 145 T(RN, -0x1p-1073, -0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 146 T(RN, -0x1p-1024, -0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 147 T(RN, -0x1p-1023, -0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 148 T(RN,-0x1.ffffffffffffcp-1023,-0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 149 T(RN,-0x1.ffffffffffffep-1023,-0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 150 T(RN, 0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 151 T(RN, 0x1p+2, nan, 0x0p+0, INVALID) 152 T(RN, 0x1p+1022, nan, 0x0p+0, INVALID) 153 T(RN, 0x1p+1023, nan, 0x0p+0, INVALID) 154 T(RN, 0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 155 T(RN, 0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 156 T(RN, inf, nan, 0x0p+0, INVALID) 157 T(RN, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 158 T(RN, -0x1p+1, nan, 0x0p+0, INVALID) 159 T(RN, -0x1p+2, nan, 0x0p+0, INVALID) 160 T(RN, -0x1p+1022, nan, 0x0p+0, INVALID) 161 T(RN, -0x1p+1023, nan, 0x0p+0, INVALID) 162 T(RN,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 163 T(RN,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 164 T(RN, -inf, nan, 0x0p+0, INVALID) 165 T(RU, 0x1.0000000000001p-1022, 0x1.0000000000002p-1022, 0x1p+0, INEXACT) 166 T(RU, 0x1.0000000000002p-1022, 0x1.0000000000003p-1022, 0x1p+0, INEXACT) 167 T(RU, 0x1p-1021, 0x1.0000000000001p-1021, 0x1p+0, INEXACT) 168 T(RU, 0x1p-1020, 0x1.0000000000001p-1020, 0x1p+0, INEXACT) 169 T(RU,-0x1.0000000000001p-1022,-0x1.0000000000001p-1022, 0x0p+0, INEXACT) 170 T(RU,-0x1.0000000000002p-1022,-0x1.0000000000002p-1022, 0x0p+0, INEXACT) 171 T(RU, -0x1p-1021, -0x1p-1021, 0x0p+0, INEXACT) 172 T(RU, -0x1p-1020, -0x1p-1020, 0x0p+0, INEXACT) 173 T(RU, 0x1p-1074, 0x1p-1073, 0x1p+0, INEXACT|UNDERFLOW) 174 T(RU, 0x1p-1073, 0x1.8p-1073, 0x1p+0, INEXACT|UNDERFLOW) 175 T(RU, 0x1p-1024, 0x1.0000000000004p-1024, 0x1p+0, INEXACT|UNDERFLOW) 176 T(RU, 0x1p-1023, 0x1.0000000000002p-1023, 0x1p+0, INEXACT|UNDERFLOW) 177 T(RU, 0x1.ffffffffffffcp-1023, 0x1.ffffffffffffep-1023, 0x1p+0, INEXACT|UNDERFLOW) 178 T(RU, 0x1.ffffffffffffep-1023, 0x1p-1022, 0x1p+0, INEXACT|UNDERFLOW) 179 T(RU, 0x1p-1022, 0x1.0000000000001p-1022, 0x1p+0, INEXACT) 180 T(RU, -0x1p-1074, -0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 181 T(RU, -0x1p-1073, -0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 182 T(RU, -0x1p-1024, -0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 183 T(RU, -0x1p-1023, -0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 184 T(RU,-0x1.ffffffffffffcp-1023,-0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 185 T(RU,-0x1.ffffffffffffep-1023,-0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 186 T(RU, -0x1p-1022, -0x1p-1022, 0x0p+0, INEXACT) 187 T(RU, 0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 188 T(RU, 0x1p+1, nan, 0x0p+0, INVALID) 189 T(RU, 0x1p+2, nan, 0x0p+0, INVALID) 190 T(RU, 0x1p+1022, nan, 0x0p+0, INVALID) 191 T(RU, 0x1p+1023, nan, 0x0p+0, INVALID) 192 T(RU, 0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 193 T(RU, 0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 194 T(RU, inf, nan, 0x0p+0, INVALID) 195 T(RU, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 196 T(RU, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 197 T(RU, -0x1p+1, nan, 0x0p+0, INVALID) 198 T(RU, -0x1p+2, nan, 0x0p+0, INVALID) 199 T(RU, -0x1p+1022, nan, 0x0p+0, INVALID) 200 T(RU, -0x1p+1023, nan, 0x0p+0, INVALID) 201 T(RU,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 202 T(RU,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 203 T(RU, -inf, nan, 0x0p+0, INVALID) 204 T(RZ, 0x1.0000000000001p-1022, 0x1.0000000000001p-1022, 0x0p+0, INEXACT) 205 T(RZ, 0x1.0000000000002p-1022, 0x1.0000000000002p-1022, 0x0p+0, INEXACT) 206 T(RZ, 0x1p-1021, 0x1p-1021, 0x0p+0, INEXACT) 207 T(RZ, 0x1p-1020, 0x1p-1020, 0x0p+0, INEXACT) 208 T(RZ,-0x1.0000000000001p-1022,-0x1.0000000000001p-1022, 0x0p+0, INEXACT) 209 T(RZ,-0x1.0000000000002p-1022,-0x1.0000000000002p-1022, 0x0p+0, INEXACT) 210 T(RZ, -0x1p-1021, -0x1p-1021, 0x0p+0, INEXACT) 211 T(RZ, -0x1p-1020, -0x1p-1020, 0x0p+0, INEXACT) 212 T(RZ, 0x1p-1074, 0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 213 T(RZ, 0x1p-1073, 0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 214 T(RZ, 0x1p-1024, 0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 215 T(RZ, 0x1p-1023, 0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 216 T(RZ, 0x1.ffffffffffffcp-1023, 0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 217 T(RZ, 0x1.ffffffffffffep-1023, 0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 218 T(RZ, 0x1p-1022, 0x1p-1022, 0x0p+0, INEXACT) 219 T(RZ, -0x1p-1074, -0x1p-1074, 0x0p+0, INEXACT|UNDERFLOW) 220 T(RZ, -0x1p-1073, -0x1p-1073, 0x0p+0, INEXACT|UNDERFLOW) 221 T(RZ, -0x1p-1024, -0x1p-1024, 0x0p+0, INEXACT|UNDERFLOW) 222 T(RZ, -0x1p-1023, -0x1p-1023, 0x0p+0, INEXACT|UNDERFLOW) 223 T(RZ,-0x1.ffffffffffffcp-1023,-0x1.ffffffffffffcp-1023, 0x0p+0, INEXACT|UNDERFLOW) 224 T(RZ,-0x1.ffffffffffffep-1023,-0x1.ffffffffffffep-1023, 0x0p+0, INEXACT|UNDERFLOW) 225 T(RZ, -0x1p-1022, -0x1p-1022, 0x0p+0, INEXACT) 226 T(RZ, 0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 227 T(RZ, 0x1p+1, nan, 0x0p+0, INVALID) 228 T(RZ, 0x1p+2, nan, 0x0p+0, INVALID) 229 T(RZ, 0x1p+1022, nan, 0x0p+0, INVALID) 230 T(RZ, 0x1p+1023, nan, 0x0p+0, INVALID) 231 T(RZ, 0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 232 T(RZ, 0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 233 T(RZ, inf, nan, 0x0p+0, INVALID) 234 T(RZ, -0x1.0000000000001p+0, nan, 0x0p+0, INVALID) 235 T(RZ, -0x1.0000000000002p+0, nan, 0x0p+0, INVALID) 236 T(RZ, -0x1p+1, nan, 0x0p+0, INVALID) 237 T(RZ, -0x1p+2, nan, 0x0p+0, INVALID) 238 T(RZ, -0x1p+1022, nan, 0x0p+0, INVALID) 239 T(RZ, -0x1p+1023, nan, 0x0p+0, INVALID) 240 T(RZ,-0x1.ffffffffffffep+1023, nan, 0x0p+0, INVALID) 241 T(RZ,-0x1.fffffffffffffp+1023, nan, 0x0p+0, INVALID) 242 T(RZ, -inf, nan, 0x0p+0, INVALID) 243