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 // coss(+-max) 38 // coss(tiny) is ~1.0 39 T(RN, 0x1p-29, 0x1p+0, 0x1p-36, INEXACT) 40 T(RN, -0x1p-29, 0x1p+0, 0x1p-36, INEXACT) 41 T(RN, 0x1p-126, 0x1p+0, 0x0p+0, INEXACT) 42 T(RN, -0x1p-126, 0x1p+0, 0x0p+0, INEXACT) 43 T(RN, 0x1p-149, 0x1p+0, 0x0p+0, INEXACT) 44 T(RN, -0x1p-149, 0x1p+0, 0x0p+0, INEXACT) 45 // coss(+-0) is 1.0 46 T(RN, 0x0p+0, 0x1p+0, 0x0p+0, 0) 47 T(RN, -0x0p+0, 0x1p+0, 0x0p+0, 0) 48 T(RZ, 0x0p+0, 0x1p+0, 0x0p+0, 0) 49 T(RZ, -0x0p+0, 0x1p+0, 0x0p+0, 0) 50 T(RU, 0x0p+0, 0x1p+0, 0x0p+0, 0) 51 T(RU, -0x0p+0, 0x1p+0, 0x0p+0, 0) 52 T(RD, 0x0p+0, 0x1p+0, 0x0p+0, 0) 53 T(RD, -0x0p+0, 0x1p+0, 0x0p+0, 0) 54 // coss(nan or inf) is nan 55 T(RN, inf, nan, 0x0p+0, INVALID) 56 T(RN, -inf, nan, 0x0p+0, INVALID) 57 T(RN, nan, nan, 0x0p+0, 0) 58 T(RN, nan, nan, 0x0p+0, 0) 59 T(RD, 0x1p-149, 0x1.fffffep-1, -0x1p+0, INEXACT) 60 T(RD, 0x1p-148, 0x1.fffffep-1, -0x1p+0, INEXACT) 61 T(RD, 0x1p-128, 0x1.fffffep-1, -0x1p+0, INEXACT) 62 T(RD, 0x1p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 63 T(RD, 0x1.fffff8p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 64 T(RD, 0x1.fffffcp-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 65 T(RD, 0x1p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 66 T(RD, 0x1.000002p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 67 T(RD, 0x1.000004p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 68 T(RD, 0x1p-125, 0x1.fffffep-1, -0x1p+0, INEXACT) 69 T(RD, 0x1p-124, 0x1.fffffep-1, -0x1p+0, INEXACT) 70 T(RD, 0x1p-27, 0x1.fffffep-1, -0x1p+0, INEXACT) 71 T(RD, 0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 72 T(RD, 0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 73 T(RD, -0x1p-149, 0x1.fffffep-1, -0x1p+0, INEXACT) 74 T(RD, -0x1p-148, 0x1.fffffep-1, -0x1p+0, INEXACT) 75 T(RD, -0x1.2p-146, 0x1.fffffep-1, -0x1p+0, INEXACT) 76 T(RD, -0x1p-128, 0x1.fffffep-1, -0x1p+0, INEXACT) 77 T(RD, -0x1p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 78 T(RD,-0x1.fffff8p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 79 T(RD,-0x1.fffffcp-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 80 T(RD, -0x1p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 81 T(RD,-0x1.000002p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 82 T(RD,-0x1.000004p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 83 T(RD,-0x1.fffff6p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 84 T(RD, -0x1p-125, 0x1.fffffep-1, -0x1p+0, INEXACT) 85 T(RD,-0x1.000006p-125, 0x1.fffffep-1, -0x1p+0, INEXACT) 86 T(RD, -0x1p-124, 0x1.fffffep-1, -0x1p+0, INEXACT) 87 T(RD, -0x1p-27, 0x1.fffffep-1, -0x1p+0, INEXACT) 88 T(RD, -0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 89 T(RD, -0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 90 T(RD, nan, nan, 0x0p+0, 0) 91 T(RD, inf, nan, 0x0p+0, INVALID) 92 T(RD, nan, nan, 0x0p+0, 0) 93 T(RD, -inf, nan, 0x0p+0, INVALID) 94 T(RD, 0x1p-12, 0x1.fffffep-1, -0x1p-1, INEXACT) 95 T(RD, -0x1p-12, 0x1.fffffep-1, -0x1p-1, INEXACT) 96 T(RN, 0x1p-148, 0x1p+0, 0x0p+0, INEXACT) 97 T(RN, 0x1.2p-146, 0x1p+0, 0x0p+0, INEXACT) 98 T(RN, 0x1p-128, 0x1p+0, 0x0p+0, INEXACT) 99 T(RN, 0x1p-127, 0x1p+0, 0x0p+0, INEXACT) 100 T(RN, 0x1.fffff8p-127, 0x1p+0, 0x0p+0, INEXACT) 101 T(RN, 0x1.fffffcp-127, 0x1p+0, 0x0p+0, INEXACT) 102 T(RN, 0x1.000002p-126, 0x1p+0, 0x0p+0, INEXACT) 103 T(RN, 0x1.000004p-126, 0x1p+0, 0x0p+0, INEXACT) 104 T(RN, 0x1.fffff6p-126, 0x1p+0, 0x0p+0, INEXACT) 105 T(RN, 0x1p-125, 0x1p+0, 0x0p+0, INEXACT) 106 T(RN, 0x1.000006p-125, 0x1p+0, 0x0p+0, INEXACT) 107 T(RN, 0x1p-124, 0x1p+0, 0x0p+0, INEXACT) 108 T(RN, 0x1p-27, 0x1p+0, 0x1p-32, INEXACT) 109 T(RN, 0x1p-12, 0x1p+0, 0x1p-2, INEXACT) 110 T(RN, 0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 111 T(RN, 0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 112 T(RN, -0x1p-148, 0x1p+0, 0x0p+0, INEXACT) 113 T(RN, -0x1.2p-146, 0x1p+0, 0x0p+0, INEXACT) 114 T(RN, -0x1p-128, 0x1p+0, 0x0p+0, INEXACT) 115 T(RN, -0x1p-127, 0x1p+0, 0x0p+0, INEXACT) 116 T(RN,-0x1.fffff8p-127, 0x1p+0, 0x0p+0, INEXACT) 117 T(RN,-0x1.fffffcp-127, 0x1p+0, 0x0p+0, INEXACT) 118 T(RN,-0x1.000002p-126, 0x1p+0, 0x0p+0, INEXACT) 119 T(RN,-0x1.000004p-126, 0x1p+0, 0x0p+0, INEXACT) 120 T(RN,-0x1.fffff6p-126, 0x1p+0, 0x0p+0, INEXACT) 121 T(RN, -0x1p-125, 0x1p+0, 0x0p+0, INEXACT) 122 T(RN,-0x1.000006p-125, 0x1p+0, 0x0p+0, INEXACT) 123 T(RN, -0x1p-124, 0x1p+0, 0x0p+0, INEXACT) 124 T(RN, -0x1p-27, 0x1p+0, 0x1p-32, INEXACT) 125 T(RN, -0x1p-12, 0x1p+0, 0x1p-2, INEXACT) 126 T(RN, -0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 127 T(RN, -0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 128 T(RU, 0x1p-149, 0x1p+0, 0x0p+0, INEXACT) 129 T(RU, 0x1p-148, 0x1p+0, 0x0p+0, INEXACT) 130 T(RU, 0x1.2p-146, 0x1p+0, 0x0p+0, INEXACT) 131 T(RU, 0x1p-128, 0x1p+0, 0x0p+0, INEXACT) 132 T(RU, 0x1p-127, 0x1p+0, 0x0p+0, INEXACT) 133 T(RU, 0x1.fffff8p-127, 0x1p+0, 0x0p+0, INEXACT) 134 T(RU, 0x1.fffffcp-127, 0x1p+0, 0x0p+0, INEXACT) 135 T(RU, 0x1p-126, 0x1p+0, 0x0p+0, INEXACT) 136 T(RU, 0x1.000002p-126, 0x1p+0, 0x0p+0, INEXACT) 137 T(RU, 0x1.000004p-126, 0x1p+0, 0x0p+0, INEXACT) 138 T(RU, 0x1.fffff6p-126, 0x1p+0, 0x0p+0, INEXACT) 139 T(RU, 0x1p-125, 0x1p+0, 0x0p+0, INEXACT) 140 T(RU, 0x1.000006p-125, 0x1p+0, 0x0p+0, INEXACT) 141 T(RU, 0x1p-124, 0x1p+0, 0x0p+0, INEXACT) 142 T(RU, 0x1p-27, 0x1p+0, 0x1p-32, INEXACT) 143 T(RU, 0x1p-12, 0x1p+0, 0x1p-2, INEXACT) 144 T(RU, -0x1p-149, 0x1p+0, 0x0p+0, INEXACT) 145 T(RU, -0x1p-148, 0x1p+0, 0x0p+0, INEXACT) 146 T(RU, -0x1p-128, 0x1p+0, 0x0p+0, INEXACT) 147 T(RU, -0x1p-127, 0x1p+0, 0x0p+0, INEXACT) 148 T(RU,-0x1.fffff8p-127, 0x1p+0, 0x0p+0, INEXACT) 149 T(RU,-0x1.fffffcp-127, 0x1p+0, 0x0p+0, INEXACT) 150 T(RU, -0x1p-126, 0x1p+0, 0x0p+0, INEXACT) 151 T(RU,-0x1.000002p-126, 0x1p+0, 0x0p+0, INEXACT) 152 T(RU,-0x1.000004p-126, 0x1p+0, 0x0p+0, INEXACT) 153 T(RU, -0x1p-125, 0x1p+0, 0x0p+0, INEXACT) 154 T(RU, -0x1p-124, 0x1p+0, 0x0p+0, INEXACT) 155 T(RU, -0x1p-27, 0x1p+0, 0x1p-32, INEXACT) 156 T(RU, -0x1p-12, 0x1p+0, 0x1p-2, INEXACT) 157 T(RU, nan, nan, 0x0p+0, 0) 158 T(RU, nan, nan, 0x0p+0, 0) 159 T(RU, inf, nan, 0x0p+0, INVALID) 160 T(RU, -inf, nan, 0x0p+0, INVALID) 161 T(RU, 0x1p-11, 0x1.fffffep-1, 0x1.fffffep-1, INEXACT) 162 T(RU, 0x1p-10, 0x1.fffff2p-1, 0x1.ffffeap-1, INEXACT) 163 T(RU, -0x1p-11, 0x1.fffffep-1, 0x1.fffffep-1, INEXACT) 164 T(RU, -0x1p-10, 0x1.fffff2p-1, 0x1.ffffeap-1, INEXACT) 165 T(RZ, 0x1p-149, 0x1.fffffep-1, -0x1p+0, INEXACT) 166 T(RZ, 0x1p-148, 0x1.fffffep-1, -0x1p+0, INEXACT) 167 T(RZ, 0x1p-128, 0x1.fffffep-1, -0x1p+0, INEXACT) 168 T(RZ, 0x1p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 169 T(RZ, 0x1.fffff8p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 170 T(RZ, 0x1.fffffcp-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 171 T(RZ, 0x1p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 172 T(RZ, 0x1.000002p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 173 T(RZ, 0x1.000004p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 174 T(RZ, 0x1p-125, 0x1.fffffep-1, -0x1p+0, INEXACT) 175 T(RZ, 0x1p-124, 0x1.fffffep-1, -0x1p+0, INEXACT) 176 T(RZ, 0x1p-27, 0x1.fffffep-1, -0x1p+0, INEXACT) 177 T(RZ, 0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 178 T(RZ, 0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 179 T(RZ, -0x1p-149, 0x1.fffffep-1, -0x1p+0, INEXACT) 180 T(RZ, -0x1p-148, 0x1.fffffep-1, -0x1p+0, INEXACT) 181 T(RZ, -0x1p-128, 0x1.fffffep-1, -0x1p+0, INEXACT) 182 T(RZ, -0x1p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 183 T(RZ,-0x1.fffff8p-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 184 T(RZ,-0x1.fffffcp-127, 0x1.fffffep-1, -0x1p+0, INEXACT) 185 T(RZ, -0x1p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 186 T(RZ,-0x1.000002p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 187 T(RZ,-0x1.000004p-126, 0x1.fffffep-1, -0x1p+0, INEXACT) 188 T(RZ, -0x1p-125, 0x1.fffffep-1, -0x1p+0, INEXACT) 189 T(RZ, -0x1p-124, 0x1.fffffep-1, -0x1p+0, INEXACT) 190 T(RZ, -0x1p-27, 0x1.fffffep-1, -0x1p+0, INEXACT) 191 T(RZ, -0x1p-11, 0x1.fffffcp-1, -0x1.555556p-25, INEXACT) 192 T(RZ, -0x1p-10, 0x1.fffffp-1, -0x1.555554p-21, INEXACT) 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) 197 T(RZ, 0x1p-12, 0x1.fffffep-1, -0x1p-1, INEXACT) 198 T(RZ, -0x1p-12, 0x1.fffffep-1, -0x1p-1, INEXACT) 199