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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
27 #if GNULIB_TEST_ACOSF
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosf, float, (float));
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
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
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
31 #if GNULIB_TEST_ASINF
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinf, float, (float));
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
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
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
35 #if GNULIB_TEST_ATANF
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanf, float, (float));
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
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
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
39 #if GNULIB_TEST_ATAN2F
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2f, float, (float, float));
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
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
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
44 #if GNULIB_TEST_COPYSIGNF
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignf, float, (float, float));
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
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
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
50 #if GNULIB_TEST_COSF
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float));
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
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
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
54 #if GNULIB_TEST_COSHF
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::coshf, float, (float));
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
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
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
60 #if GNULIB_TEST_EXPF
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
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
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
64 #if GNULIB_TEST_FABSF
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float));
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
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
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
68 #if GNULIB_TEST_FMODF
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float));
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
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
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
72 #if GNULIB_TEST_FREXPF
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
73 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *));
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
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
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
82 #if GNULIB_TEST_LDEXPF
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
83 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int));
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
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
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
90 #if GNULIB_TEST_LOGF
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
91 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float));
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
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
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
94 #if GNULIB_TEST_LOG10F
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float));
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
96 #endif
15838
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
97 #if GNULIB_TEST_MODFF
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *));
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
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
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
102 #if GNULIB_TEST_POWF
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
103 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float));
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
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
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
107 #if GNULIB_TEST_RINT
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
109 #endif
15872
83e1d08997e4 New module 'sinf'.
Bruno Haible <bruno@clisp.org>
parents: 15869
diff changeset
110 #if GNULIB_TEST_SINF
83e1d08997e4 New module 'sinf'.
Bruno Haible <bruno@clisp.org>
parents: 15869
diff changeset
111 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float));
83e1d08997e4 New module 'sinf'.
Bruno Haible <bruno@clisp.org>
parents: 15869
diff changeset
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
792aac7b45c4 New module 'sinhf'.
Bruno Haible <bruno@clisp.org>
parents: 15890
diff changeset
114 #if GNULIB_TEST_SINHF
792aac7b45c4 New module 'sinhf'.
Bruno Haible <bruno@clisp.org>
parents: 15890
diff changeset
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinhf, float, (float));
792aac7b45c4 New module 'sinhf'.
Bruno Haible <bruno@clisp.org>
parents: 15890
diff changeset
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
6b8400199763 New module 'sqrtf'.
Bruno Haible <bruno@clisp.org>
parents: 15847
diff changeset
118 #if GNULIB_TEST_SQRTF
6b8400199763 New module 'sqrtf'.
Bruno Haible <bruno@clisp.org>
parents: 15847
diff changeset
119 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float));
6b8400199763 New module 'sqrtf'.
Bruno Haible <bruno@clisp.org>
parents: 15847
diff changeset
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
c0c190f3cccb New module 'tanf'.
Bruno Haible <bruno@clisp.org>
parents: 15875
diff changeset
122 #if GNULIB_TEST_TANF
c0c190f3cccb New module 'tanf'.
Bruno Haible <bruno@clisp.org>
parents: 15875
diff changeset
123 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float));
c0c190f3cccb New module 'tanf'.
Bruno Haible <bruno@clisp.org>
parents: 15875
diff changeset
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
31b76bf2f9e4 New module 'tanhf'.
Bruno Haible <bruno@clisp.org>
parents: 15896
diff changeset
126 #if GNULIB_TEST_TANHF
31b76bf2f9e4 New module 'tanhf'.
Bruno Haible <bruno@clisp.org>
parents: 15896
diff changeset
127 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanhf, float, (float));
31b76bf2f9e4 New module 'tanhf'.
Bruno Haible <bruno@clisp.org>
parents: 15896
diff changeset
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
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
150 #if GNULIB_TEST_CEIL
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
151 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
152 #endif
2c35dd380b9e New module 'ceil-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13981
diff changeset
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
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
158 #if GNULIB_TEST_COPYSIGNL
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
159 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignl, long double,
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
160 (long double, long double));
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
161 #endif
adefeca52f7d New module 'copysignl'.
Bruno Haible <bruno@clisp.org>
parents: 15911
diff changeset
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
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
175 #if GNULIB_TEST_FLOOR
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
176 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
177 #endif
8a7dbd29e9a5 New module 'floor-ieee'.
Bruno Haible <bruno@clisp.org>
parents: 13073
diff changeset
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 }