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 // overflow boundary 38 T(RN, 0x1.633ce8fb9f87dp+9, 0x1.ffffffffffd3bp+1023, 0x1.a6b164p-4, INEXACT) 39 T(RZ, 0x1.633ce8fb9f87dp+9, 0x1.ffffffffffd3ap+1023, -0x1.cb29d4p-1, INEXACT) 40 T(RU, 0x1.633ce8fb9f87dp+9, 0x1.ffffffffffd3bp+1023, 0x1.a6b164p-4, INEXACT) 41 T(RD, 0x1.633ce8fb9f87dp+9, 0x1.ffffffffffd3ap+1023, -0x1.cb29d4p-1, INEXACT) 42 T(RN, -0x1.633ce8fb9f87dp+9, 0x1.ffffffffffd3bp+1023, 0x1.a6b164p-4, INEXACT) 43 T(RN, 0x1.633ce8fb9f87ep+9, inf, 0x0p+0, INEXACT|OVERFLOW) 44 T(RN, -0x1.633ce8fb9f87ep+9, inf, 0x0p+0, INEXACT|OVERFLOW) 45 T(RZ, -0x1.633ce8fb9f87ep+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 46 T(RU, -0x1.633ce8fb9f87ep+9, inf, 0x0p+0, INEXACT|OVERFLOW) 47 T(RD, -0x1.633ce8fb9f87ep+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 48 // coshd(0 or tiny) :=: 1.0 49 T(RN, 0x1p-67, 0x1p+0, 0x0p+0, INEXACT) 50 T(RN, -0x1p-67, 0x1p+0, 0x0p+0, INEXACT) 51 T(RN, 0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 52 T(RN, -0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 53 T(RN, 0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 54 T(RN, -0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 55 T(RN, 0x0p+0, 0x1p+0, 0x0p+0, 0) 56 T(RN, -0x0p+0, 0x1p+0, 0x0p+0, 0) 57 // random arguments between -50,50 58 T(RN, -0x1.adeefb2b5006dp+3, 0x1.4de3262eea3cap+18, 0x1.e30caep-3, INEXACT) 59 T(RN, 0x1.1ce3efb825911p+5, 0x1.4c46db4f09332p+50, -0x1.1bee26p-3, INEXACT) 60 T(RN, 0x1.602e109de7505p+5, 0x1.6cd152f852538p+62, 0x1.432474p-2, INEXACT) 61 T(RN, -0x1.0b245fba96889p+5, 0x1.2121104afc5efp+47, 0x1.b8303p-2, INEXACT) 62 T(RN, -0x1.b171ee27084ddp+3, 0x1.749cc0eb38f31p+18, 0x1.1a3cf8p-3, INEXACT) 63 T(RN, -0x1.f6eff1b093c41p+0, 0x1.d16cbf8794c45p+1, -0x1.6a0662p-3, INEXACT) 64 T(RN, 0x1.ceaa3d18455f5p+4, 0x1.a507cd0be14cdp+40, 0x1.40d57cp-4, INEXACT) 65 T(RN, 0x1.560914a51b239p+5, 0x1.9a9b0ddd8b0c7p+60, 0x1.5db126p-2, INEXACT) 66 T(RN, -0x1.0ce901079de4dp+3, 0x1.16e676fb41d68p+11, 0x1.5681cap-3, INEXACT) 67 T(RN, -0x1.7f35b3103b871p+5, 0x1.13ae32648dd07p+68, 0x1.ebb6p-4, INEXACT) 68 // coshd(nan/inf) 69 T(RN, nan, nan, 0x0p+0, 0) 70 T(RN, nan, nan, 0x0p+0, 0) 71 T(RN, inf, inf, 0x0p+0, 0) 72 T(RN, -inf, inf, 0x0p+0, 0) 73 T(RD, inf, inf, 0x0p+0, 0) 74 T(RD, -0x0p+0, 0x1p+0, 0x0p+0, 0) 75 T(RD, -inf, inf, 0x0p+0, 0) 76 T(RD, 0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 77 T(RD, 0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 78 T(RD, 0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 79 T(RD, 0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 80 T(RD, 0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 81 T(RD, 0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 82 T(RD, 0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 83 T(RD, 0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 84 T(RD, 0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 85 T(RD, 0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 86 T(RD, 0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 87 T(RD, 0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 88 T(RD, -0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 89 T(RD, -0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 90 T(RD, -0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 91 T(RD, -0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 92 T(RD,-0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 93 T(RD,-0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 94 T(RD, -0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 95 T(RD,-0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 96 T(RD,-0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 97 T(RD, -0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 98 T(RD, -0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 99 T(RD, -0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 100 T(RD, 0x1.634p+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 101 T(RD, 0x1p+1022, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 102 T(RD, 0x1p+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 103 T(RD, 0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 104 T(RD, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 105 T(RD, -0x1.634p+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 106 T(RD, -0x1p+1022, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 107 T(RD, -0x1p+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 108 T(RD,-0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 109 T(RD,-0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 110 T(RD, nan, nan, 0x0p+0, 0) 111 T(RD, nan, nan, 0x0p+0, 0) 112 T(RD, 0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 113 T(RD, -0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 114 T(RN, 0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 115 T(RN, 0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 116 T(RN, 0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 117 T(RN, 0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 118 T(RN, 0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 119 T(RN, 0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 120 T(RN, 0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 121 T(RN, 0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 122 T(RN, 0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 123 T(RN, 0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 124 T(RN, 0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 125 T(RN, -0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 126 T(RN, -0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 127 T(RN, -0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 128 T(RN,-0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 129 T(RN,-0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 130 T(RN,-0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 131 T(RN,-0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 132 T(RN, -0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 133 T(RN, -0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 134 T(RN, -0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 135 T(RN, -0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 136 T(RN, 0x1.634p+9, inf, 0x0p+0, INEXACT|OVERFLOW) 137 T(RN, 0x1p+1022, inf, 0x0p+0, INEXACT|OVERFLOW) 138 T(RN, 0x1p+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 139 T(RN, 0x1.ffffffffffffep+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 140 T(RN, 0x1.fffffffffffffp+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 141 T(RN, -0x1.634p+9, inf, 0x0p+0, INEXACT|OVERFLOW) 142 T(RN, -0x1p+1022, inf, 0x0p+0, INEXACT|OVERFLOW) 143 T(RN, -0x1p+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 144 T(RN,-0x1.ffffffffffffep+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 145 T(RN,-0x1.fffffffffffffp+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 146 T(RU, 0x0p+0, 0x1p+0, 0x0p+0, 0) 147 T(RU, inf, inf, 0x0p+0, 0) 148 T(RU, -0x0p+0, 0x1p+0, 0x0p+0, 0) 149 T(RU, -inf, inf, 0x0p+0, 0) 150 T(RU, 0x1.634p+9, inf, 0x0p+0, INEXACT|OVERFLOW) 151 T(RU, 0x1p+1022, inf, 0x0p+0, INEXACT|OVERFLOW) 152 T(RU, 0x1p+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 153 T(RU, 0x1.ffffffffffffep+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 154 T(RU, 0x1.fffffffffffffp+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 155 T(RU, -0x1.634p+9, inf, 0x0p+0, INEXACT|OVERFLOW) 156 T(RU, -0x1p+1022, inf, 0x0p+0, INEXACT|OVERFLOW) 157 T(RU, -0x1p+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 158 T(RU,-0x1.ffffffffffffep+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 159 T(RU,-0x1.fffffffffffffp+1023, inf, 0x0p+0, INEXACT|OVERFLOW) 160 T(RU, nan, nan, 0x0p+0, 0) 161 T(RU, nan, nan, 0x0p+0, 0) 162 T(RU, 0x1p-1074, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 163 T(RU, 0x1p-1073, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 164 T(RU, 0x1p-1024, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 165 T(RU, 0x1p-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 166 T(RU, 0x1.ffffffffffffcp-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 167 T(RU, 0x1.ffffffffffffep-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 168 T(RU, 0x1p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 169 T(RU, 0x1.0000000000001p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 170 T(RU, 0x1.0000000000002p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 171 T(RU, 0x1p-1021, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 172 T(RU, 0x1p-1020, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 173 T(RU, 0x1p-27, 0x1.0000000000001p+0, 0x1.cp-1, INEXACT) 174 T(RU, 0x1p-25, 0x1.0000000000003p+0, 0x1p+0, INEXACT) 175 T(RU, -0x1p-1074, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 176 T(RU, -0x1p-1073, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 177 T(RU, -0x1p-1024, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 178 T(RU, -0x1p-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 179 T(RU,-0x1.ffffffffffffcp-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 180 T(RU,-0x1.ffffffffffffep-1023, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 181 T(RU, -0x1p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 182 T(RU,-0x1.0000000000001p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 183 T(RU,-0x1.0000000000002p-1022, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 184 T(RU, -0x1p-1021, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 185 T(RU, -0x1p-1020, 0x1.0000000000001p+0, 0x1p+0, INEXACT) 186 T(RU, -0x1p-27, 0x1.0000000000001p+0, 0x1.cp-1, INEXACT) 187 T(RU, -0x1p-25, 0x1.0000000000003p+0, 0x1p+0, INEXACT) 188 T(RZ, 0x0p+0, 0x1p+0, 0x0p+0, 0) 189 T(RZ, inf, inf, 0x0p+0, 0) 190 T(RZ, -0x0p+0, 0x1p+0, 0x0p+0, 0) 191 T(RZ, -inf, inf, 0x0p+0, 0) 192 T(RZ, 0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 193 T(RZ, 0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 194 T(RZ, 0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 195 T(RZ, 0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 196 T(RZ, 0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 197 T(RZ, 0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 198 T(RZ, 0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 199 T(RZ, 0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 200 T(RZ, 0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 201 T(RZ, 0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 202 T(RZ, 0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 203 T(RZ, 0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 204 T(RZ, -0x1p-1074, 0x1p+0, 0x0p+0, INEXACT) 205 T(RZ, -0x1p-1073, 0x1p+0, 0x0p+0, INEXACT) 206 T(RZ, -0x1p-1024, 0x1p+0, 0x0p+0, INEXACT) 207 T(RZ, -0x1p-1023, 0x1p+0, 0x0p+0, INEXACT) 208 T(RZ,-0x1.ffffffffffffcp-1023, 0x1p+0, 0x0p+0, INEXACT) 209 T(RZ,-0x1.ffffffffffffep-1023, 0x1p+0, 0x0p+0, INEXACT) 210 T(RZ, -0x1p-1022, 0x1p+0, 0x0p+0, INEXACT) 211 T(RZ,-0x1.0000000000001p-1022, 0x1p+0, 0x0p+0, INEXACT) 212 T(RZ,-0x1.0000000000002p-1022, 0x1p+0, 0x0p+0, INEXACT) 213 T(RZ, -0x1p-1021, 0x1p+0, 0x0p+0, INEXACT) 214 T(RZ, -0x1p-1020, 0x1p+0, 0x0p+0, INEXACT) 215 T(RZ, -0x1p-27, 0x1p+0, -0x1p-3, INEXACT) 216 T(RZ, 0x1.634p+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 217 T(RZ, 0x1p+1022, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 218 T(RZ, 0x1p+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 219 T(RZ, 0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 220 T(RZ, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 221 T(RZ, -0x1.634p+9, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 222 T(RZ, -0x1p+1022, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 223 T(RZ, -0x1p+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 224 T(RZ,-0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 225 T(RZ,-0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023, -0x1p+0, INEXACT|OVERFLOW) 226 T(RZ, nan, nan, 0x0p+0, 0) 227 T(RZ, nan, nan, 0x0p+0, 0) 228 T(RZ, 0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 229 T(RZ, -0x1p-25, 0x1.0000000000002p+0, -0x1.555554p-53, INEXACT) 230