xref: /third_party/musl/libc-test/src/math/ucb/fabsf.h (revision 570af302)
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.
37T(RN,          0x0p+0,          0x0p+0,          0x0p+0, 0)
38T(RN,        0x1p-149,        0x1p-149,          0x0p+0, 0)
39T(RN,        0x1p-126,        0x1p-126,          0x0p+0, 0)
40T(RN,          0x1p+0,          0x1p+0,          0x0p+0, 0)
41T(RN, 0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
42T(RN,             inf,             inf,          0x0p+0, 0)
43T(RN,             nan,             nan,          0x0p+0, 0)
44T(RN,         -0x0p+0,          0x0p+0,          0x0p+0, 0)
45T(RN,       -0x1p-149,        0x1p-149,          0x0p+0, 0)
46T(RN,       -0x1p-126,        0x1p-126,          0x0p+0, 0)
47T(RN,  -0x1.00001ep+0,   0x1.00001ep+0,          0x0p+0, 0)
48T(RN,-0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
49T(RN,            -inf,             inf,          0x0p+0, 0)
50T(RN,             nan,             nan,          0x0p+0, 0)
51T(RD,          0x0p+0,          0x0p+0,          0x0p+0, 0)
52T(RD,        0x1p-149,        0x1p-149,          0x0p+0, 0)
53T(RD, 0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
54T(RD,        0x1p+127,        0x1p+127,          0x0p+0, 0)
55T(RD, 0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
56T(RD,             inf,             inf,          0x0p+0, 0)
57T(RD,         -0x0p+0,          0x0p+0,          0x0p+0, 0)
58T(RD,       -0x1p-149,        0x1p-149,          0x0p+0, 0)
59T(RD,-0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
60T(RD,         -0x1p+0,          0x1p+0,          0x0p+0, 0)
61T(RD,       -0x1p+127,        0x1p+127,          0x0p+0, 0)
62T(RD,-0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
63T(RD,            -inf,             inf,          0x0p+0, 0)
64T(RD,             nan,             nan,          0x0p+0, 0)
65T(RD,             nan,             nan,          0x0p+0, 0)
66T(RN, 0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
67T(RN,        0x1p+127,        0x1p+127,          0x0p+0, 0)
68T(RN,-0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
69T(RN,         -0x1p+0,          0x1p+0,          0x0p+0, 0)
70T(RN,       -0x1p+127,        0x1p+127,          0x0p+0, 0)
71T(RU,          0x0p+0,          0x0p+0,          0x0p+0, 0)
72T(RU,        0x1p-149,        0x1p-149,          0x0p+0, 0)
73T(RU, 0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
74T(RU,          0x1p+0,          0x1p+0,          0x0p+0, 0)
75T(RU,        0x1p+127,        0x1p+127,          0x0p+0, 0)
76T(RU, 0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
77T(RU,             inf,             inf,          0x0p+0, 0)
78T(RU,         -0x0p+0,          0x0p+0,          0x0p+0, 0)
79T(RU,       -0x1p-149,        0x1p-149,          0x0p+0, 0)
80T(RU,-0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
81T(RU,         -0x1p+0,          0x1p+0,          0x0p+0, 0)
82T(RU,       -0x1p+127,        0x1p+127,          0x0p+0, 0)
83T(RU,-0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
84T(RU,            -inf,             inf,          0x0p+0, 0)
85T(RU,             nan,             nan,          0x0p+0, 0)
86T(RU,             nan,             nan,          0x0p+0, 0)
87T(RZ,          0x0p+0,          0x0p+0,          0x0p+0, 0)
88T(RZ,        0x1p-149,        0x1p-149,          0x0p+0, 0)
89T(RZ, 0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
90T(RZ,          0x1p+0,          0x1p+0,          0x0p+0, 0)
91T(RZ,        0x1p+127,        0x1p+127,          0x0p+0, 0)
92T(RZ, 0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
93T(RZ,             inf,             inf,          0x0p+0, 0)
94T(RZ,         -0x0p+0,          0x0p+0,          0x0p+0, 0)
95T(RZ,       -0x1p-149,        0x1p-149,          0x0p+0, 0)
96T(RZ,-0x1.fffffcp-127, 0x1.fffffcp-127,          0x0p+0, 0)
97T(RZ,         -0x1p+0,          0x1p+0,          0x0p+0, 0)
98T(RZ,       -0x1p+127,        0x1p+127,          0x0p+0, 0)
99T(RZ,-0x1.fffffep+127, 0x1.fffffep+127,          0x0p+0, 0)
100T(RZ,            -inf,             inf,          0x0p+0, 0)
101T(RZ,             nan,             nan,          0x0p+0, 0)
102T(RZ,             nan,             nan,          0x0p+0, 0)
103