Blob Blame History Raw
// Copyright (C) 1988-1994 Sun Microsystems, Inc. 2550 Garcia Avenue
// Mountain View, California  94043 All rights reserved.
//
// Any person is hereby authorized to download, copy, use, create bug fixes,
// and distribute, subject to the following conditions:
//
// 	1.  the software may not be redistributed for a fee except as
// 	    reasonable to cover media costs;
// 	2.  any copy of the software must include this notice, as well as
// 	    any other embedded copyright notices; and
// 	3.  any distribution of this software or derivative works thereof
// 	    must comply with all applicable U.S. export control laws.
//
// THE SOFTWARE IS MADE AVAILABLE "AS IS" AND WITHOUT EXPRESS OR IMPLIED
// WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF DESIGN, MERCHANTIBILITY, FITNESS FOR A PARTICULAR
// PURPOSE, NON-INFRINGEMENT, PERFORMANCE OR CONFORMANCE TO
// SPECIFICATIONS.
//
// BY DOWNLOADING AND/OR USING THIS SOFTWARE, THE USER WAIVES ALL CLAIMS
// AGAINST SUN MICROSYSTEMS, INC. AND ITS AFFILIATED COMPANIES IN ANY
// JURISDICTION, INCLUDING BUT NOT LIMITED TO CLAIMS FOR DAMAGES OR
// EQUITABLE RELIEF BASED ON LOSS OF DATA, AND SPECIFICALLY WAIVES EVEN
// UNKNOWN OR UNANTICIPATED CLAIMS OR LOSSES, PRESENT AND FUTURE.
//
// IN NO EVENT WILL SUN MICROSYSTEMS, INC. OR ANY OF ITS AFFILIATED
// COMPANIES BE LIABLE FOR ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL,
// INDIRECT AND CONSEQUENTIAL DAMAGES, EVEN IF IT HAS BEEN ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGES.
//
// This file is provided with no support and without any obligation on the
// part of Sun Microsystems, Inc. ("Sun") or any of its affiliated
// companies to assist in its use, correction, modification or
// enhancement.  Nevertheless, and without creating any obligation on its
// part, Sun welcomes your comments concerning the software and requests
// that they be sent to fdlibm-comments@sunpro.sun.com.
// overflow threshold
T(RN,    0x1.62e42fefa39efp+9, 0x1.fffffffffff2ap+1023,  -0x1.b0e264p-4, INEXACT)
T(RZ,    0x1.62e42fefa39efp+9, 0x1.fffffffffff2ap+1023,  -0x1.b0e262p-4, INEXACT)
T(RU,    0x1.62e42fefa39efp+9, 0x1.fffffffffff2bp+1023,   0x1.c9e3b4p-1, INEXACT)
T(RD,    0x1.62e42fefa39efp+9, 0x1.fffffffffff2ap+1023,  -0x1.b0e264p-4, INEXACT)
T(RN,     0x1.62e42fefa39fp+9,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RZ,     0x1.62e42fefa39fp+9, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RU,     0x1.62e42fefa39fp+9,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RD,     0x1.62e42fefa39fp+9, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RN,         0x1.fffffp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RZ,         0x1.fffffp+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RU,         0x1.fffffp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RD,         0x1.fffffp+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RN,                     inf,                     inf,          0x0p+0, 0)
// expd(0 or tiny) = 1
T(RN,                  0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RN,                 -0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RN,               0x1p-1074,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1074,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,               0x1p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1022,                  0x1p+0,          0x0p+0, INEXACT)
// underflow
T(RN,   -0x1.6232bdd7abcd2p+9, 0x1.000000000007cp-1022,   0x1.0c013ep-2, INEXACT)
T(RZ,   -0x1.6232bdd7abcd2p+9, 0x1.000000000007bp-1022,   -0x1.79ff6p-1, INEXACT)
T(RU,   -0x1.6232bdd7abcd2p+9, 0x1.000000000007cp-1022,    0x1.0c014p-2, INEXACT)
T(RD,   -0x1.6232bdd7abcd2p+9, 0x1.000000000007bp-1022,  -0x1.79ff62p-1, INEXACT)
T(RN,   -0x1.6232bdd7abcd3p+9, 0x1.ffffffffffcf8p-1023,   0x1.0c013ep-2, INEXACT|UNDERFLOW)
T(RN,   -0x1.74910d52d3051p+9,               0x1p-1074,          0x1p-1, INEXACT|UNDERFLOW)
T(RN,   -0x1.74910d52d3052p+9,                  0x0p+0,         -0x1p-1, INEXACT|UNDERFLOW)
T(RN,        -0x1.fffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,        -0x1.fffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RU,        -0x1.fffffp+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RD,        -0x1.fffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,                    -inf,                  0x0p+0,          0x0p+0, 0)
// random arguments between -20 20
T(RN,   -0x1.57f25b2b5006dp+2,    0x1.2fbea6a01cab9p-8,  -0x1.b1308cp-2, INEXACT)
T(RN,    0x1.c7d30fb825911p+3,   0x1.76eeed45a0634p+20,  -0x1.e1cd26p-7, INEXACT)
T(RN,    0x1.19be709de7505p+4,   0x1.52d3eb7be6844p+25,   -0x1.1eb34p-3, INEXACT)
T(RN,   -0x1.ab6d6fba96889p+3,   0x1.a88ae12f985d6p-20,  -0x1.d4b94cp-3, INEXACT)
T(RN,   -0x1.5ac18e27084ddp+2,    0x1.22b327da9cca6p-8,    0x1.aa10dp-3, INEXACT)
T(RN,   -0x1.925981b093c41p-1,    0x1.d2acc046b55f7p-2,  -0x1.01db1ap-3, INEXACT)
T(RN,    0x1.7221cd18455f5p+3,   0x1.9c2cde8699cfbp+16,  -0x1.a622bep-4, INEXACT)
T(RN,    0x1.11a0d4a51b239p+4,   0x1.980ef612ff182p+24,  -0x1.6c4118p-2, INEXACT)
T(RN,   -0x1.ae41a1079de4dp+1,    0x1.1c28d16bb3222p-5,  -0x1.4e4448p-2, INEXACT)
T(RN,   -0x1.329153103b871p+4,   0x1.47efa6ddd0d22p-28,   0x1.a279e6p-2, INEXACT)
// expd(nan) is nan
T(RN,                     nan,                     nan,          0x0p+0, 0)
T(RN,                     nan,                     nan,          0x0p+0, 0)
T(RD,                     inf,                     inf,          0x0p+0, 0)
T(RD,                 -0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RD,                    -inf,                  0x0p+0,          0x0p+0, 0)
T(RD,               0x1p-1074,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,             0x1.8p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1024,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.ffffffffffffcp-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.ffffffffffffep-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.0000000000001p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.0000000000002p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.ffffffffffffdp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RD, 0x1.fffffffffffffp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1021,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,               0x1p-1020,                  0x1p+0,          0x0p+0, INEXACT)
T(RD,                 0x1p-73,                  0x1p+0,        -0x1p-21, INEXACT)
T(RD,                 0x1p-66,                  0x1p+0,        -0x1p-14, INEXACT)
T(RD,                 0x1p-65,                  0x1p+0,        -0x1p-13, INEXACT)
T(RD,               0x1.63p+9, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,            0x1.c9c8p+13, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,                 0x1p+14, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,                 0x1p+18, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,               0x1p+1015, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,               0x1p+1021, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,               0x1p+1022, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,               0x1p+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD, 0x1.ffffffffffff7p+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD, 0x1.ffffffffffffcp+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD, 0x1.ffffffffffffdp+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD, 0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023,         -0x1p+0, INEXACT|OVERFLOW)
T(RD,              -0x1.75p+9,                  0x0p+0,  -0x1.ae63bep-3, INEXACT|UNDERFLOW)
T(RD,           -0x1.c9c8p+13,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,                -0x1p+18,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,              -0x1p+1019,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,              -0x1p+1020,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,              -0x1p+1021,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,              -0x1p+1022,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,              -0x1p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,-0x1.ffffffffffff7p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,-0x1.ffffffffffffcp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,-0x1.ffffffffffffdp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,-0x1.ffffffffffffep+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,-0x1.fffffffffffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RD,                     nan,                     nan,          0x0p+0, 0)
T(RD,                     nan,                     nan,          0x0p+0, 0)
T(RD,   0x1.fffffffffffffp-53,                  0x1p+0,         -0x1p+0, INEXACT)
T(RD,   0x1.ffffffffffffcp-52,    0x1.0000000000001p+0,         -0x1p+0, INEXACT)
T(RD,   0x1.ffffffffffffcp-51,    0x1.0000000000003p+0,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1074,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1073,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1024,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1023,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,-0x1.ffffffffffffcp-1023,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,-0x1.ffffffffffffep-1023,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1022,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,-0x1.0000000000001p-1022,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,-0x1.0000000000002p-1022,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1021,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,              -0x1p-1020,    0x1.fffffffffffffp-1,         -0x1p+0, INEXACT)
T(RD,                -0x1p-73,    0x1.fffffffffffffp-1,   -0x1.ffffep-1, INEXACT)
T(RD,                -0x1p-66,    0x1.fffffffffffffp-1,     -0x1.fffp-1, INEXACT)
T(RD,  -0x1.0000000000001p-51,    0x1.ffffffffffffcp-1,          0x0p+0, INEXACT)
T(RD,  -0x1.8000000000004p-51,    0x1.ffffffffffff9p-1,         -0x1p+0, INEXACT)
T(RN,               0x1p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,             0x1.8p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,               0x1p-1024,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,               0x1p-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.ffffffffffffcp-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.ffffffffffffep-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.0000000000001p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.0000000000002p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.ffffffffffffdp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN, 0x1.fffffffffffffp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,               0x1p-1021,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,               0x1p-1020,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,                 0x1p-73,                  0x1p+0,        -0x1p-21, INEXACT)
T(RN,                 0x1p-66,                  0x1p+0,        -0x1p-14, INEXACT)
T(RN,                 0x1p-65,                  0x1p+0,        -0x1p-13, INEXACT)
T(RN,   0x1.fffffffffffffp-53,    0x1.0000000000001p+0,          0x0p+0, INEXACT)
T(RN,   0x1.ffffffffffffcp-52,    0x1.0000000000002p+0,         0x1p-51, INEXACT)
T(RN,   0x1.ffffffffffffcp-51,    0x1.0000000000004p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1024,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,-0x1.ffffffffffffcp-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,-0x1.ffffffffffffep-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,-0x1.0000000000001p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,-0x1.0000000000002p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1021,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,              -0x1p-1020,                  0x1p+0,          0x0p+0, INEXACT)
T(RN,                -0x1p-73,                  0x1p+0,         0x1p-21, INEXACT)
T(RN,                -0x1p-66,                  0x1p+0,         0x1p-14, INEXACT)
T(RN,  -0x1.0000000000001p-51,    0x1.ffffffffffffcp-1,          0x0p+0, INEXACT)
T(RN,  -0x1.8000000000004p-51,    0x1.ffffffffffffap-1,       0x1.cp-50, INEXACT)
T(RN,               0x1.63p+9,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,            0x1.c9c8p+13,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,                 0x1p+14,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,                 0x1p+18,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,               0x1p+1015,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,               0x1p+1021,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,               0x1p+1022,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,               0x1p+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN, 0x1.ffffffffffff7p+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN, 0x1.ffffffffffffcp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN, 0x1.ffffffffffffdp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN, 0x1.ffffffffffffep+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN, 0x1.fffffffffffffp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RN,              -0x1.75p+9,                  0x0p+0,  -0x1.ae63bep-3, INEXACT|UNDERFLOW)
T(RN,           -0x1.c9c8p+13,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,                -0x1p+18,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,              -0x1p+1019,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,              -0x1p+1020,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,              -0x1p+1021,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,              -0x1p+1022,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,              -0x1p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,-0x1.ffffffffffff7p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,-0x1.ffffffffffffcp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,-0x1.ffffffffffffdp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,-0x1.ffffffffffffep+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RN,-0x1.fffffffffffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RU,                  0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RU,                     inf,                     inf,          0x0p+0, 0)
T(RU,                 -0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RU,                    -inf,                  0x0p+0,          0x0p+0, 0)
T(RU,              -0x1p-1074,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1024,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,-0x1.ffffffffffffcp-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,-0x1.ffffffffffffep-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,-0x1.0000000000001p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,-0x1.0000000000002p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1021,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,              -0x1p-1020,                  0x1p+0,          0x0p+0, INEXACT)
T(RU,                -0x1p-73,                  0x1p+0,         0x1p-21, INEXACT)
T(RU,                -0x1p-66,                  0x1p+0,         0x1p-14, INEXACT)
T(RU,               0x1.63p+9,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,            0x1.c9c8p+13,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,                 0x1p+14,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,                 0x1p+18,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,               0x1p+1015,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,               0x1p+1021,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,               0x1p+1022,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,               0x1p+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU, 0x1.ffffffffffff7p+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU, 0x1.ffffffffffffcp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU, 0x1.ffffffffffffdp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU, 0x1.ffffffffffffep+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU, 0x1.fffffffffffffp+1023,                     inf,          0x0p+0, INEXACT|OVERFLOW)
T(RU,                -0x1p+18,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,              -0x1p+1019,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,              -0x1p+1020,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,              -0x1p+1021,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,              -0x1p+1022,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,              -0x1p+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,-0x1.ffffffffffff7p+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,-0x1.ffffffffffffcp+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,-0x1.ffffffffffffdp+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,-0x1.ffffffffffffep+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,-0x1.fffffffffffffp+1023,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RU,                     nan,                     nan,          0x0p+0, 0)
T(RU,                     nan,                     nan,          0x0p+0, 0)
T(RU,               0x1p-1074,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1073,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,             0x1.8p-1073,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1024,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1023,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.ffffffffffffcp-1023,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.ffffffffffffep-1023,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1022,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.0000000000001p-1022,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.0000000000002p-1022,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.ffffffffffffdp-1022,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU, 0x1.fffffffffffffp-1022,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1021,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,               0x1p-1020,    0x1.0000000000001p+0,          0x1p+0, INEXACT)
T(RU,                 0x1p-73,    0x1.0000000000001p+0,    0x1.fffffp-1, INEXACT)
T(RU,                 0x1p-66,    0x1.0000000000001p+0,     0x1.fff8p-1, INEXACT)
T(RU,                 0x1p-65,    0x1.0000000000001p+0,      0x1.fffp-1, INEXACT)
T(RU,   0x1.fffffffffffffp-53,    0x1.0000000000001p+0,          0x0p+0, INEXACT)
T(RU,   0x1.ffffffffffffcp-52,    0x1.0000000000002p+0,         0x1p-51, INEXACT)
T(RU,   0x1.ffffffffffffcp-51,    0x1.0000000000004p+0,          0x0p+0, INEXACT)
T(RU,  -0x1.0000000000001p-51,    0x1.ffffffffffffdp-1,          0x1p+0, INEXACT)
T(RU,  -0x1.8000000000004p-51,    0x1.ffffffffffffap-1,       0x1.cp-50, INEXACT)
T(RU,              -0x1.75p+9,               0x1p-1074,    0x1.94671p-1, INEXACT|UNDERFLOW)
T(RU,           -0x1.c9c8p+13,               0x1p-1074,          0x1p+0, INEXACT|UNDERFLOW)
T(RZ,                  0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RZ,                     inf,                     inf,          0x0p+0, 0)
T(RZ,                 -0x0p+0,                  0x1p+0,          0x0p+0, 0)
T(RZ,                    -inf,                  0x0p+0,          0x0p+0, 0)
T(RZ,               0x1p-1074,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,             0x1.8p-1073,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1024,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.ffffffffffffcp-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.ffffffffffffep-1023,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.0000000000001p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.0000000000002p-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.ffffffffffffdp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ, 0x1.fffffffffffffp-1022,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1021,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,               0x1p-1020,                  0x1p+0,          0x0p+0, INEXACT)
T(RZ,                 0x1p-73,                  0x1p+0,        -0x1p-21, INEXACT)
T(RZ,                 0x1p-66,                  0x1p+0,        -0x1p-14, INEXACT)
T(RZ,                 0x1p-65,                  0x1p+0,        -0x1p-13, INEXACT)
T(RZ,               0x1.63p+9, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,            0x1.c9c8p+13, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,                 0x1p+14, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,                 0x1p+18, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,               0x1p+1015, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,               0x1p+1021, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,               0x1p+1022, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,               0x1p+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ, 0x1.ffffffffffff7p+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ, 0x1.ffffffffffffcp+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ, 0x1.ffffffffffffdp+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ, 0x1.ffffffffffffep+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ, 0x1.fffffffffffffp+1023, 0x1.fffffffffffffp+1023,  -0x1.fffffep-1, INEXACT|OVERFLOW)
T(RZ,              -0x1.75p+9,                  0x0p+0,  -0x1.ae63bep-3, INEXACT|UNDERFLOW)
T(RZ,           -0x1.c9c8p+13,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,                -0x1p+18,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,              -0x1p+1019,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,              -0x1p+1020,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,              -0x1p+1021,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,              -0x1p+1022,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,              -0x1p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,-0x1.ffffffffffff7p+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,-0x1.ffffffffffffcp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,-0x1.ffffffffffffdp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,-0x1.ffffffffffffep+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,-0x1.fffffffffffffp+1023,                  0x0p+0,          0x0p+0, INEXACT|UNDERFLOW)
T(RZ,                     nan,                     nan,          0x0p+0, 0)
T(RZ,                     nan,                     nan,          0x0p+0, 0)
T(RZ,   0x1.fffffffffffffp-53,                  0x1p+0,  -0x1.fffffep-1, INEXACT)
T(RZ,   0x1.ffffffffffffcp-52,    0x1.0000000000001p+0,  -0x1.fffffep-1, INEXACT)
T(RZ,   0x1.ffffffffffffcp-51,    0x1.0000000000003p+0,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1074,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1073,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1024,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1023,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,-0x1.ffffffffffffcp-1023,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,-0x1.ffffffffffffep-1023,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1022,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,-0x1.0000000000001p-1022,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,-0x1.0000000000002p-1022,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1021,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,              -0x1p-1020,    0x1.fffffffffffffp-1,  -0x1.fffffep-1, INEXACT)
T(RZ,                -0x1p-73,    0x1.fffffffffffffp-1,   -0x1.ffffep-1, INEXACT)
T(RZ,                -0x1p-66,    0x1.fffffffffffffp-1,     -0x1.fffp-1, INEXACT)
T(RZ,  -0x1.0000000000001p-51,    0x1.ffffffffffffcp-1,          0x0p+0, INEXACT)
T(RZ,  -0x1.8000000000004p-51,    0x1.ffffffffffff9p-1,  -0x1.fffffep-1, INEXACT)