xref: /netbsd-src/external/gpl3/gcc.old/dist/libquadmath/quadmath_weak.h (revision 627f7eb200a4419d89b531d55fccd2ee3ffdcde0)
1*627f7eb2Smrg /* GCC Quad-Precision Math Library
2*627f7eb2Smrg    Copyright (C) 2010-2018 Free Software Foundation, Inc.
3*627f7eb2Smrg    Written by Tobias Burnus  <burnus@net-b.de>
4*627f7eb2Smrg 
5*627f7eb2Smrg This file is part of the libquadmath library.
6*627f7eb2Smrg Libquadmath is free software; you can redistribute it and/or
7*627f7eb2Smrg modify it under the terms of the GNU Library General Public
8*627f7eb2Smrg License as published by the Free Software Foundation; either
9*627f7eb2Smrg version 2 of the License, or (at your option) any later version.
10*627f7eb2Smrg 
11*627f7eb2Smrg Libquadmath is distributed in the hope that it will be useful,
12*627f7eb2Smrg but WITHOUT ANY WARRANTY; without even the implied warranty of
13*627f7eb2Smrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14*627f7eb2Smrg Library General Public License for more details.
15*627f7eb2Smrg 
16*627f7eb2Smrg You should have received a copy of the GNU Library General Public
17*627f7eb2Smrg License along with libquadmath; see the file COPYING.LIB.  If
18*627f7eb2Smrg not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19*627f7eb2Smrg Boston, MA 02110-1301, USA.  */
20*627f7eb2Smrg 
21*627f7eb2Smrg #ifndef QUADMATH_WEAK_H
22*627f7eb2Smrg #define QUADMATH_WEAK_H
23*627f7eb2Smrg 
24*627f7eb2Smrg #include "quadmath.h"
25*627f7eb2Smrg 
26*627f7eb2Smrg #if SUPPORTS_WEAK
27*627f7eb2Smrg # define __qmath2(name,name2,type) \
28*627f7eb2Smrg   static __typeof(type) name __attribute__ ((__weakref__(#name2))) \
29*627f7eb2Smrg 			__quadmath_throw;
30*627f7eb2Smrg # define __qmath_(name) __qmath_ ## name
31*627f7eb2Smrg #else
32*627f7eb2Smrg # define __qmath2(name,name2,type)
33*627f7eb2Smrg # define __qmath_(name) name
34*627f7eb2Smrg #endif
35*627f7eb2Smrg 
36*627f7eb2Smrg /* __qmath_foo is a weak reference to symbol foo.  */
37*627f7eb2Smrg #define __qmath3(name) __qmath2(__qmath_ ## name,name,name)
38*627f7eb2Smrg 
39*627f7eb2Smrg /* Prototypes for real functions.  */
40*627f7eb2Smrg __qmath3 (acosq)
41*627f7eb2Smrg __qmath3 (acoshq)
42*627f7eb2Smrg __qmath3 (asinq)
43*627f7eb2Smrg __qmath3 (asinhq)
44*627f7eb2Smrg __qmath3 (atanq)
45*627f7eb2Smrg __qmath3 (atanhq)
46*627f7eb2Smrg __qmath3 (atan2q)
47*627f7eb2Smrg __qmath3 (cbrtq)
48*627f7eb2Smrg __qmath3 (ceilq)
49*627f7eb2Smrg __qmath3 (copysignq)
50*627f7eb2Smrg __qmath3 (coshq)
51*627f7eb2Smrg __qmath3 (cosq)
52*627f7eb2Smrg __qmath3 (erfq)
53*627f7eb2Smrg __qmath3 (erfcq)
54*627f7eb2Smrg __qmath3 (exp2q)
55*627f7eb2Smrg __qmath3 (expq)
56*627f7eb2Smrg __qmath3 (expm1q)
57*627f7eb2Smrg __qmath3 (fabsq)
58*627f7eb2Smrg __qmath3 (fdimq)
59*627f7eb2Smrg __qmath3 (finiteq)
60*627f7eb2Smrg __qmath3 (floorq)
61*627f7eb2Smrg __qmath3 (fmaq)
62*627f7eb2Smrg __qmath3 (fmaxq)
63*627f7eb2Smrg __qmath3 (fminq)
64*627f7eb2Smrg __qmath3 (fmodq)
65*627f7eb2Smrg __qmath3 (frexpq)
66*627f7eb2Smrg __qmath3 (hypotq)
67*627f7eb2Smrg __qmath3 (ilogbq)
68*627f7eb2Smrg __qmath3 (isinfq)
69*627f7eb2Smrg __qmath3 (isnanq)
70*627f7eb2Smrg __qmath3 (issignalingq)
71*627f7eb2Smrg __qmath3 (j0q)
72*627f7eb2Smrg __qmath3 (j1q)
73*627f7eb2Smrg __qmath3 (jnq)
74*627f7eb2Smrg __qmath3 (ldexpq)
75*627f7eb2Smrg __qmath3 (lgammaq)
76*627f7eb2Smrg __qmath3 (llrintq)
77*627f7eb2Smrg __qmath3 (llroundq)
78*627f7eb2Smrg __qmath3 (logbq)
79*627f7eb2Smrg __qmath3 (logq)
80*627f7eb2Smrg __qmath3 (log10q)
81*627f7eb2Smrg __qmath3 (log1pq)
82*627f7eb2Smrg __qmath3 (log2q)
83*627f7eb2Smrg __qmath3 (lrintq)
84*627f7eb2Smrg __qmath3 (lroundq)
85*627f7eb2Smrg __qmath3 (modfq)
86*627f7eb2Smrg __qmath3 (nanq)
87*627f7eb2Smrg __qmath3 (nearbyintq)
88*627f7eb2Smrg __qmath3 (nextafterq)
89*627f7eb2Smrg __qmath3 (powq)
90*627f7eb2Smrg __qmath3 (remainderq)
91*627f7eb2Smrg __qmath3 (remquoq)
92*627f7eb2Smrg __qmath3 (rintq)
93*627f7eb2Smrg __qmath3 (roundq)
94*627f7eb2Smrg __qmath3 (scalblnq)
95*627f7eb2Smrg __qmath3 (scalbnq)
96*627f7eb2Smrg __qmath3 (signbitq)
97*627f7eb2Smrg __qmath3 (sincosq)
98*627f7eb2Smrg __qmath3 (sinhq)
99*627f7eb2Smrg __qmath3 (sinq)
100*627f7eb2Smrg __qmath3 (sqrtq)
101*627f7eb2Smrg __qmath3 (tanq)
102*627f7eb2Smrg __qmath3 (tanhq)
103*627f7eb2Smrg __qmath3 (tgammaq)
104*627f7eb2Smrg __qmath3 (truncq)
105*627f7eb2Smrg __qmath3 (y0q)
106*627f7eb2Smrg __qmath3 (y1q)
107*627f7eb2Smrg __qmath3 (ynq)
108*627f7eb2Smrg 
109*627f7eb2Smrg 
110*627f7eb2Smrg /* Prototypes for complex functions.  */
111*627f7eb2Smrg __qmath3 (cabsq)
112*627f7eb2Smrg __qmath3 (cargq)
113*627f7eb2Smrg __qmath3 (cimagq)
114*627f7eb2Smrg __qmath3 (crealq)
115*627f7eb2Smrg __qmath3 (cacosq)
116*627f7eb2Smrg __qmath3 (cacoshq)
117*627f7eb2Smrg __qmath3 (casinq)
118*627f7eb2Smrg __qmath3 (casinhq)
119*627f7eb2Smrg __qmath3 (catanq)
120*627f7eb2Smrg __qmath3 (catanhq)
121*627f7eb2Smrg __qmath3 (ccosq)
122*627f7eb2Smrg __qmath3 (ccoshq)
123*627f7eb2Smrg __qmath3 (cexpq)
124*627f7eb2Smrg __qmath3 (cexpiq)
125*627f7eb2Smrg __qmath3 (clogq)
126*627f7eb2Smrg __qmath3 (clog10q)
127*627f7eb2Smrg __qmath3 (conjq)
128*627f7eb2Smrg __qmath3 (cpowq)
129*627f7eb2Smrg __qmath3 (cprojq)
130*627f7eb2Smrg __qmath3 (csinq)
131*627f7eb2Smrg __qmath3 (csinhq)
132*627f7eb2Smrg __qmath3 (csqrtq)
133*627f7eb2Smrg __qmath3 (ctanq)
134*627f7eb2Smrg __qmath3 (ctanhq)
135*627f7eb2Smrg 
136*627f7eb2Smrg 
137*627f7eb2Smrg /* Prototypes for string <-> flt128 conversion functions.  */
138*627f7eb2Smrg __qmath3 (strtoflt128)
139*627f7eb2Smrg __qmath3 (quadmath_snprintf)
140*627f7eb2Smrg 
141*627f7eb2Smrg #endif
142