1 /* A GNU-like <math.h>.
3 Copyright (C) 2002-2003, 2007 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
22 #include @ABSOLUTE_MATH_H@
25 /* The definition of GL_LINK_WARNING is copied here. */
34 extern long double acosl (long double x);
35 #elif defined GNULIB_POSIXCHECK
38 (GL_LINK_WARNING ("acosl is unportable - " \
39 "use gnulib module mathl for portability"), \
44 extern long double asinl (long double x);
45 #elif defined GNULIB_POSIXCHECK
48 (GL_LINK_WARNING ("asinl is unportable - " \
49 "use gnulib module mathl for portability"), \
54 extern long double atanl (long double x);
55 #elif defined GNULIB_POSIXCHECK
58 (GL_LINK_WARNING ("atanl is unportable - " \
59 "use gnulib module mathl for portability"), \
64 extern long double ceill (long double x);
65 #elif defined GNULIB_POSIXCHECK
68 (GL_LINK_WARNING ("ceill is unportable - " \
69 "use gnulib module mathl for portability"), \
74 extern long double cosl (long double x);
75 #elif defined GNULIB_POSIXCHECK
78 (GL_LINK_WARNING ("cosl is unportable - " \
79 "use gnulib module mathl for portability"), \
84 extern long double expl (long double x);
85 #elif defined GNULIB_POSIXCHECK
88 (GL_LINK_WARNING ("expl is unportable - " \
89 "use gnulib module mathl for portability"), \
94 extern long double floorl (long double x);
95 #elif defined GNULIB_POSIXCHECK
98 (GL_LINK_WARNING ("floorl is unportable - " \
99 "use gnulib module mathl for portability"), \
104 extern long double frexpl (long double x, int *exp);
105 #elif defined GNULIB_POSIXCHECK
107 # define frexpl(x,e) \
108 (GL_LINK_WARNING ("frexpl is unportable - " \
109 "use gnulib module mathl for portability"), \
114 extern long double ldexpl (long double x, int exp);
115 #elif defined GNULIB_POSIXCHECK
117 # define ldexpl(x,e) \
118 (GL_LINK_WARNING ("ldexpl is unportable - " \
119 "use gnulib module mathl for portability"), \
124 extern long double logl (long double x);
125 #elif defined GNULIB_POSIXCHECK
128 (GL_LINK_WARNING ("logl is unportable - " \
129 "use gnulib module mathl for portability"), \
134 extern long double sinl (long double x);
135 #elif defined GNULIB_POSIXCHECK
138 (GL_LINK_WARNING ("sinl is unportable - " \
139 "use gnulib module mathl for portability"), \
144 extern long double sqrtl (long double x);
145 #elif defined GNULIB_POSIXCHECK
148 (GL_LINK_WARNING ("sqrtl is unportable - " \
149 "use gnulib module mathl for portability"), \
154 extern long double tanl (long double x);
155 #elif defined GNULIB_POSIXCHECK
158 (GL_LINK_WARNING ("tanl is unportable - " \
159 "use gnulib module mathl for portability"), \