1 /* Test of <math.h> substitute in C++ mode.
2 Copyright (C) 2010-2011 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosf, float, (float));
30 //SIGNATURE_CHECK (GNULIB_NAMESPACE::acos, double, (double));
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinf, float, (float));
34 //SIGNATURE_CHECK (GNULIB_NAMESPACE::asin, double, (double));
35 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan, double, (double));
36 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double));
37 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double));
38 //SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double));
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float));
42 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cos, double, (double));
43 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cosh, double, (double));
44 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double));
45 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double));
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
49 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double));
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float));
53 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double));
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float));
57 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double));
58 #if GNULIB_TEST_FREXPF
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *));
62 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *));
64 //SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double));
65 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
66 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));
67 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double));
68 #if GNULIB_TEST_LDEXPF
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int));
71 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int));
72 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double));
73 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double));
74 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
75 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));
77 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float));
79 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double));
80 #if GNULIB_TEST_LOG10F
81 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float));
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *));
86 //SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *));
87 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double));
89 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float));
91 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double));
92 //SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double));
93 //SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float));
97 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double));
98 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double));
100 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float));
102 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double));
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float));
106 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double));
107 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double));
108 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double));
109 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double));
110 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double));
112 #if GNULIB_TEST_ACOSL
113 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double));
116 #if GNULIB_TEST_ASINL
117 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double));
120 #if GNULIB_TEST_ATANL
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double));
124 #if GNULIB_TEST_CEILF
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float));
129 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
132 #if GNULIB_TEST_CEILL
133 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double));
137 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double));
141 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
144 #if GNULIB_TEST_FLOORF
145 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float));
148 #if GNULIB_TEST_FLOOR
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
152 #if GNULIB_TEST_FLOORL
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double));
156 #if GNULIB_TEST_FREXPL
157 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *));
160 #if GNULIB_TEST_LDEXPL
161 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
165 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double));
168 #if GNULIB_TEST_ROUNDF
169 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float));
172 #if GNULIB_TEST_ROUND
173 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double));
176 #if GNULIB_TEST_ROUNDL
177 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundl, long double, (long double));
181 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double));
184 #if GNULIB_TEST_SQRTL
185 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double));
189 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double));
192 #if GNULIB_TEST_TRUNCF
193 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float));
196 #if GNULIB_TEST_TRUNC
197 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double));
200 #if GNULIB_TEST_TRUNCL
201 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));