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