Mercurial > hg > octave-nkf > gnulib-hg
annotate tests/test-math-c++.cc @ 15917:2a90104cab5b
rint: Support for MSVC.
* lib/math.in.h (rint): New declaration.
* lib/rint.c: New file.
* m4/rint.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
* modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
* modules/rint (Description): Fix.
(Files): Add lib/rint.c, m4/rint.m4.
(Depends-on): Add math.
(configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
gl_MATH_MODULE_INDICATOR.
* tests/test-math-c++.cc: Check the declaration of rint.
* modules/math-c++-tests (Makefile.am): Link test-math-c++ against
$(RINT_LIBM). Needed on IRIX 6.5 with cc.
* doc/posix-functions/rint.texi: Mention the replacement provided by
the module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 09 Oct 2011 18:42:07 +0200 |
parents | adefeca52f7d |
children | 1ffbb15d4325 |
rev | line source |
---|---|
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test of <math.h> substitute in C++ mode. |
14079
97fc9a21a8fb
maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents:
13982
diff
changeset
|
2 Copyright (C) 2010-2011 Free Software Foundation, Inc. |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */ |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 #define GNULIB_NAMESPACE gnulib |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 #include <config.h> |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 #include <math.h> |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 #include "signature.h" |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 |
15884 | 27 #if GNULIB_TEST_ACOSF |
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosf, float, (float)); | |
29 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 //SIGNATURE_CHECK (GNULIB_NAMESPACE::acos, double, (double)); |
15881 | 31 #if GNULIB_TEST_ASINF |
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinf, float, (float)); | |
33 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 //SIGNATURE_CHECK (GNULIB_NAMESPACE::asin, double, (double)); |
15887 | 35 #if GNULIB_TEST_ATANF |
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanf, float, (float)); | |
37 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan, double, (double)); |
15890 | 39 #if GNULIB_TEST_ATAN2F |
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2f, float, (float, float)); | |
41 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double)); |
15911 | 44 #if GNULIB_TEST_COPYSIGNF |
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignf, float, (float, float)); | |
46 #endif | |
15908
2f40da163bc2
copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents:
15899
diff
changeset
|
47 #if GNULIB_TEST_COPYSIGN |
2f40da163bc2
copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents:
15899
diff
changeset
|
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double)); |
2f40da163bc2
copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents:
15899
diff
changeset
|
49 #endif |
15875 | 50 #if GNULIB_TEST_COSF |
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float)); | |
52 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
53 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cos, double, (double)); |
15896 | 54 #if GNULIB_TEST_COSHF |
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::coshf, float, (float)); | |
56 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
57 //SIGNATURE_CHECK (GNULIB_NAMESPACE::cosh, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
59 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double)); |
15860 | 60 #if GNULIB_TEST_EXPF |
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float)); | |
62 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
63 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double)); |
15828 | 64 #if GNULIB_TEST_FABSF |
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float)); | |
66 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
67 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double)); |
15832 | 68 #if GNULIB_TEST_FMODF |
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float)); | |
70 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
71 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double)); |
15841 | 72 #if GNULIB_TEST_FREXPF |
73 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *)); | |
74 #endif | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
75 #if GNULIB_TEST_FREXP |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
77 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
78 //SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
79 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
80 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
81 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double)); |
15847 | 82 #if GNULIB_TEST_LDEXPF |
83 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int)); | |
84 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
85 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
86 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
87 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
88 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
89 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double)); |
15863 | 90 #if GNULIB_TEST_LOGF |
91 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float)); | |
92 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
93 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double)); |
15866 | 94 #if GNULIB_TEST_LOG10F |
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float)); | |
96 #endif | |
15838 | 97 #if GNULIB_TEST_MODFF |
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *)); | |
99 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
100 //SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
101 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double)); |
15869 | 102 #if GNULIB_TEST_POWF |
103 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float)); | |
104 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
105 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
106 //SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double)); |
15917 | 107 #if GNULIB_TEST_RINT |
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double)); | |
109 #endif | |
15872 | 110 #if GNULIB_TEST_SINF |
111 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float)); | |
112 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
113 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double)); |
15893 | 114 #if GNULIB_TEST_SINHF |
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinhf, float, (float)); | |
116 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
117 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double)); |
15857 | 118 #if GNULIB_TEST_SQRTF |
119 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float)); | |
120 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
121 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double)); |
15878 | 122 #if GNULIB_TEST_TANF |
123 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float)); | |
124 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
125 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double)); |
15899 | 126 #if GNULIB_TEST_TANHF |
127 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanhf, float, (float)); | |
128 #endif | |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
129 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
130 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
131 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
132 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
133 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
134 #if GNULIB_TEST_ACOSL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
136 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
137 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
138 #if GNULIB_TEST_ASINL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
139 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
140 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
141 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
142 #if GNULIB_TEST_ATANL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
143 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
144 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
145 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
146 #if GNULIB_TEST_CEILF |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
147 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
148 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
149 |
13982 | 150 #if GNULIB_TEST_CEIL |
151 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double)); | |
152 #endif | |
153 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
154 #if GNULIB_TEST_CEILL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
155 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
156 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
157 |
15913 | 158 #if GNULIB_TEST_COPYSIGNL |
159 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignl, long double, | |
160 (long double, long double)); | |
161 #endif | |
162 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
163 #if GNULIB_TEST_COSL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
164 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
165 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
166 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
167 #if GNULIB_TEST_EXPL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
168 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
169 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
170 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
171 #if GNULIB_TEST_FLOORF |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
172 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
173 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
174 |
13981 | 175 #if GNULIB_TEST_FLOOR |
176 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double)); | |
177 #endif | |
178 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
179 #if GNULIB_TEST_FLOORL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
180 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
181 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
182 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
183 #if GNULIB_TEST_FREXPL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
184 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
185 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
186 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
187 #if GNULIB_TEST_LDEXPL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
188 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
189 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
190 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
191 #if GNULIB_TEST_LOGL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
192 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
193 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
194 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
195 #if GNULIB_TEST_ROUNDF |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
196 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
197 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
198 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
199 #if GNULIB_TEST_ROUND |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
200 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
201 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
202 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
203 #if GNULIB_TEST_ROUNDL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
204 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
205 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
206 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
207 #if GNULIB_TEST_SINL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
208 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
209 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
210 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
211 #if GNULIB_TEST_SQRTL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
212 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
213 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
214 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
215 #if GNULIB_TEST_TANL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
216 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
217 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
218 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
219 #if GNULIB_TEST_TRUNCF |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
220 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
221 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
222 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
223 #if GNULIB_TEST_TRUNC |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
224 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
225 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
226 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
12960
diff
changeset
|
227 #if GNULIB_TEST_TRUNCL |
12960
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
228 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double)); |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
229 #endif |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
230 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
231 |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
232 int |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
233 main () |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
234 { |
1583e59dfb92
Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
235 } |