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 // acoss(+-1) is 0,pi 38 T(RN, 0x1p+0, 0x0p+0, 0x0p+0, 0) 39 T(RN, -0x1p+0, 0x1.921fb6p+1, 0x1.777a5cp-2, INEXACT) 40 // acoss(+-(1 - tiny)) :=: sqrt(2*tiny) or pi-sqrt(2*tiny) 41 T(RN, 0x1.fffffcp-1, 0x1p-11, -0x1.555556p-4, INEXACT) 42 T(RZ, 0x1.fffffcp-1, 0x1p-11, -0x1.555556p-4, INEXACT) 43 T(RU, 0x1.fffffcp-1, 0x1.000002p-11, 0x1.d55556p-1, INEXACT) 44 T(RD, 0x1.fffffcp-1, 0x1p-11, -0x1.555556p-4, INEXACT) 45 T(RN, -0x1.fffffcp-1, 0x1.920fb6p+1, 0x1.777fb2p-2, INEXACT) 46 T(RZ, -0x1.fffffcp-1, 0x1.920fb4p+1, -0x1.444026p-1, INEXACT) 47 T(RU, -0x1.fffffcp-1, 0x1.920fb6p+1, 0x1.777fb2p-2, INEXACT) 48 T(RD, -0x1.fffffcp-1, 0x1.920fb4p+1, -0x1.444026p-1, INEXACT) 49 // acoss(tiny) = pi/2-tiny 50 T(RN, 0x1p-15, 0x1.921db6p+0, 0x1.777a6p-2, INEXACT) 51 T(RN, -0x1p-15, 0x1.9221b6p+0, 0x1.777a5ap-2, INEXACT) 52 T(RN, 0x1p-29, 0x1.921fb6p+0, 0x1.877a5cp-2, INEXACT) 53 T(RN, -0x1p-29, 0x1.921fb6p+0, 0x1.677a5cp-2, INEXACT) 54 T(RN, 0x1p-126, 0x1.921fb6p+0, 0x1.777a5cp-2, INEXACT) 55 T(RN, -0x1p-126, 0x1.921fb6p+0, 0x1.777a5cp-2, INEXACT) 56 T(RN, 0x0p+0, 0x1.921fb6p+0, 0x1.777a5cp-2, INEXACT) 57 // some random number between -1 and 1 58 T(RN, -0x1.13284cp-2, 0x1.d7c4e6p+0, -0x1.1d5134p-3, INEXACT) 59 T(RN, 0x1.6ca8ep-1, 0x1.8e6756p-1, -0x1.f07dd8p-3, INEXACT) 60 T(RN, 0x1.c2ca6p-1, 0x1.f9d74cp-2, 0x1.ebd7f8p-3, INEXACT) 61 T(RN, -0x1.55f12p-1, 0x1.26abdcp+1, -0x1.004222p-2, INEXACT) 62 T(RN, -0x1.15679ep-2, 0x1.d85a44p+0, -0x1.c043c2p-2, INEXACT) 63 T(RN, -0x1.41e132p-5, 0x1.9c2f68p+0, -0x1.22d4d4p-2, INEXACT) 64 T(RN, 0x1.281b0ep-1, 0x1.e881bp-1, -0x1.71bc6ep-2, INEXACT) 65 T(RN, 0x1.b5ce34p-1, 0x1.1713f6p-1, -0x1.4c3306p-2, INEXACT) 66 T(RN, -0x1.583482p-3, 0x1.bd5accp+0, -0x1.0f775p-6, INEXACT) 67 T(RN, -0x1.ea8224p-1, 0x1.6ce7d8p+1, 0x1.7f0fbcp-2, INEXACT) 68 // exception cases 69 T(RN, 0x1.000002p+0, nan, 0x0p+0, INVALID) 70 T(RZ, 0x1.000002p+0, nan, 0x0p+0, INVALID) 71 T(RU, 0x1.000002p+0, nan, 0x0p+0, INVALID) 72 T(RD, 0x1.000002p+0, nan, 0x0p+0, INVALID) 73 T(RN, -0x1.000002p+0, nan, 0x0p+0, INVALID) 74 T(RN, 0x1p+1, nan, 0x0p+0, INVALID) 75 T(RN, 0x1.e00002p+2, nan, 0x0p+0, INVALID) 76 T(RN, -0x1.fffffep+2, nan, 0x0p+0, INVALID) 77 T(RN, nan, nan, 0x0p+0, 0) 78 T(RN, nan, nan, 0x0p+0, 0) 79 T(RZ, nan, nan, 0x0p+0, 0) 80 T(RU, nan, nan, 0x0p+0, 0) 81 T(RD, nan, nan, 0x0p+0, 0) 82 T(RZ, nan, nan, 0x0p+0, 0) 83 T(RU, nan, nan, 0x0p+0, 0) 84 T(RD, nan, nan, 0x0p+0, 0) 85 T(RD, 0x1p+0, 0x0p+0, 0x0p+0, 0) 86 T(RD, 0x1.000004p+0, nan, 0x0p+0, INVALID) 87 T(RD, 0x1p+1, nan, 0x0p+0, INVALID) 88 T(RD, 0x1p+2, nan, 0x0p+0, INVALID) 89 T(RD, 0x1p+126, nan, 0x0p+0, INVALID) 90 T(RD, 0x1p+127, nan, 0x0p+0, INVALID) 91 T(RD, 0x1.fffffcp+127, nan, 0x0p+0, INVALID) 92 T(RD, 0x1.fffffep+127, nan, 0x0p+0, INVALID) 93 T(RD, inf, nan, 0x0p+0, INVALID) 94 T(RD, -0x1.000002p+0, nan, 0x0p+0, INVALID) 95 T(RD, -0x1.000004p+0, nan, 0x0p+0, INVALID) 96 T(RD, -0x1p+1, nan, 0x0p+0, INVALID) 97 T(RD, -0x1p+2, nan, 0x0p+0, INVALID) 98 T(RD, -0x1p+126, nan, 0x0p+0, INVALID) 99 T(RD, -0x1p+127, nan, 0x0p+0, INVALID) 100 T(RD,-0x1.fffffcp+127, nan, 0x0p+0, INVALID) 101 T(RD,-0x1.fffffep+127, nan, 0x0p+0, INVALID) 102 T(RD, -inf, nan, 0x0p+0, INVALID) 103 T(RN, 0x1.000004p+0, nan, 0x0p+0, INVALID) 104 T(RN, 0x1p+2, nan, 0x0p+0, INVALID) 105 T(RN, 0x1p+126, nan, 0x0p+0, INVALID) 106 T(RN, 0x1p+127, nan, 0x0p+0, INVALID) 107 T(RN, 0x1.fffffcp+127, nan, 0x0p+0, INVALID) 108 T(RN, 0x1.fffffep+127, nan, 0x0p+0, INVALID) 109 T(RN, inf, nan, 0x0p+0, INVALID) 110 T(RN, -0x1.000004p+0, nan, 0x0p+0, INVALID) 111 T(RN, -0x1p+1, nan, 0x0p+0, INVALID) 112 T(RN, -0x1p+2, nan, 0x0p+0, INVALID) 113 T(RN, -0x1p+126, nan, 0x0p+0, INVALID) 114 T(RN, -0x1p+127, nan, 0x0p+0, INVALID) 115 T(RN,-0x1.fffffcp+127, nan, 0x0p+0, INVALID) 116 T(RN,-0x1.fffffep+127, nan, 0x0p+0, INVALID) 117 T(RN, -inf, nan, 0x0p+0, INVALID) 118 T(RU, 0x1p+0, 0x0p+0, 0x0p+0, 0) 119 T(RU, 0x1.000004p+0, nan, 0x0p+0, INVALID) 120 T(RU, 0x1p+1, nan, 0x0p+0, INVALID) 121 T(RU, 0x1p+2, nan, 0x0p+0, INVALID) 122 T(RU, 0x1p+126, nan, 0x0p+0, INVALID) 123 T(RU, 0x1p+127, nan, 0x0p+0, INVALID) 124 T(RU, 0x1.fffffcp+127, nan, 0x0p+0, INVALID) 125 T(RU, 0x1.fffffep+127, nan, 0x0p+0, INVALID) 126 T(RU, inf, nan, 0x0p+0, INVALID) 127 T(RU, -0x1.000002p+0, nan, 0x0p+0, INVALID) 128 T(RU, -0x1.000004p+0, nan, 0x0p+0, INVALID) 129 T(RU, -0x1p+1, nan, 0x0p+0, INVALID) 130 T(RU, -0x1p+2, nan, 0x0p+0, INVALID) 131 T(RU, -0x1p+126, nan, 0x0p+0, INVALID) 132 T(RU, -0x1p+127, nan, 0x0p+0, INVALID) 133 T(RU,-0x1.fffffcp+127, nan, 0x0p+0, INVALID) 134 T(RU,-0x1.fffffep+127, nan, 0x0p+0, INVALID) 135 T(RU, -inf, nan, 0x0p+0, INVALID) 136 T(RU, 0x1.fffffp-1, 0x1.000002p-10, 0x1.555554p-1, INEXACT) 137 T(RZ, 0x1p+0, 0x0p+0, 0x0p+0, 0) 138 T(RZ, 0x1.000004p+0, nan, 0x0p+0, INVALID) 139 T(RZ, 0x1p+1, nan, 0x0p+0, INVALID) 140 T(RZ, 0x1p+2, nan, 0x0p+0, INVALID) 141 T(RZ, 0x1p+126, nan, 0x0p+0, INVALID) 142 T(RZ, 0x1p+127, nan, 0x0p+0, INVALID) 143 T(RZ, 0x1.fffffcp+127, nan, 0x0p+0, INVALID) 144 T(RZ, 0x1.fffffep+127, nan, 0x0p+0, INVALID) 145 T(RZ, inf, nan, 0x0p+0, INVALID) 146 T(RZ, -0x1.000002p+0, nan, 0x0p+0, INVALID) 147 T(RZ, -0x1.000004p+0, nan, 0x0p+0, INVALID) 148 T(RZ, -0x1p+1, nan, 0x0p+0, INVALID) 149 T(RZ, -0x1p+2, nan, 0x0p+0, INVALID) 150 T(RZ, -0x1p+126, nan, 0x0p+0, INVALID) 151 T(RZ, -0x1p+127, nan, 0x0p+0, INVALID) 152 T(RZ,-0x1.fffffcp+127, nan, 0x0p+0, INVALID) 153 T(RZ,-0x1.fffffep+127, nan, 0x0p+0, INVALID) 154 T(RZ, -inf, nan, 0x0p+0, INVALID) 155 T(RZ, 0x1.fffffp-1, 0x1p-10, -0x1.555558p-2, INEXACT) 156