1 /* GCC Quad-Precision Math Library
2 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
3 Written by Tobias Burnus <burnus@net-b.de>
5 This file is part of the libquadmath library.
6 Libquadmath is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 Libquadmath is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with libquadmath; see the file COPYING.LIB. If
18 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19 Boston, MA 02110-1301, USA. */
21 #ifndef QUADMATH_WEAK_H
22 #define QUADMATH_WEAK_H
27 # define __qmath2(name,name2,type) \
28 static __typeof(type) name __attribute__ ((__weakref__(#name2)));
29 # define __qmath_(name) __qmath_ ## name
31 # define __qmath2(name,name2,type)
32 # define __qmath_(name) name
35 /* __qmath_foo is a weak reference to symbol foo. */
36 #define __qmath3(name) __qmath2(__qmath_ ## name,name,name)
38 /* Prototypes for real functions. */
106 /* Prototypes for complex functions. */
133 /* Prototypes for string <-> flt128 conversion functions. */
134 __qmath3 (strtoflt128
)
135 __qmath3 (quadmath_flt128tostr
)