annotate tests/test-math-c++.cc @ 16581:8e7ddab445f4

New module 'expm1'. * lib/math.in.h (expm1): New declaration. * lib/expm1.c: New file. * m4/expm1.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1. * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1. * modules/expm1: New file. * tests/test-math-c++.cc: Check the declaration of expm1. * doc/posix-functions/expm1.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Tue, 06 Mar 2012 17:55:54 +0100
parents b4afb7c149dc
children 258b00af8457
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.
16201
8250f2777afc maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents: 16045
diff changeset
2 Copyright (C) 2010-2012 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
15982
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
26 /* Signature check for a function that takes a real-floating argument.
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
27 Check that each overloaded function with the specified signature exists. */
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
28 #define REAL_FLOATING_CHECK(func,\
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
29 rettype1, parameters1,\
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
30 rettype2, parameters2,\
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
31 rettype3, parameters3) \
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
32 OVERLOADED_CHECK (func, rettype1, parameters1, _1); \
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
33 OVERLOADED_CHECK (func, rettype2, parameters2, _2); \
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
34 OVERLOADED_CHECK (func, rettype3, parameters3, _3)
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
35 #define OVERLOADED_CHECK(func, rettype, parameters, suffix) \
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
36 static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
37 = static_cast<rettype(*)parameters>(func)
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
39
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
40 /* Keep these checks in the same order as math.in.h! */
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
41
15884
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
42 #if GNULIB_TEST_ACOSF
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosf, float, (float));
c46fa8f14280 New module 'acosf'.
Bruno Haible <bruno@clisp.org>
parents: 15881
diff changeset
44 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 //SIGNATURE_CHECK (GNULIB_NAMESPACE::acos, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
46 #if GNULIB_TEST_ACOSL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::acosl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
48 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
49
15881
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
50 #if GNULIB_TEST_ASINF
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
diff changeset
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinf, float, (float));
8ff52f1384c6 New module 'asinf'.
Bruno Haible <bruno@clisp.org>
parents: 15878
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::asin, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
54 #if GNULIB_TEST_ASINL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::asinl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
56 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
57
15887
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
58 #if GNULIB_TEST_ATANF
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanf, float, (float));
89c762414427 New module 'atanf'.
Bruno Haible <bruno@clisp.org>
parents: 15884
diff changeset
60 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
62 #if GNULIB_TEST_ATANL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
63 SIGNATURE_CHECK (GNULIB_NAMESPACE::atanl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
64 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
65
15890
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
66 #if GNULIB_TEST_ATAN2F
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
67 SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2f, float, (float, float));
52fb6ed99832 New module 'atan2f'.
Bruno Haible <bruno@clisp.org>
parents: 15887
diff changeset
68 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atan2, double, (double, double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
70
16534
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
71 #if GNULIB_TEST_CBRTF
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrtf, float, (float));
f2d8c70a9f81 New module 'cbrtf'.
Bruno Haible <bruno@clisp.org>
parents: 16533
diff changeset
73 #endif
16533
d91850ca525f cbrt: Provide replacement on MSVC and Minix.
Bruno Haible <bruno@clisp.org>
parents: 16530
diff changeset
74 #if GNULIB_TEST_CBRT
d91850ca525f cbrt: Provide replacement on MSVC and Minix.
Bruno Haible <bruno@clisp.org>
parents: 16530
diff changeset
75 SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrt, double, (double));
d91850ca525f cbrt: Provide replacement on MSVC and Minix.
Bruno Haible <bruno@clisp.org>
parents: 16530
diff changeset
76 #endif
16536
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
77 #if GNULIB_TEST_CBRTL
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::cbrtl, long double, (long double));
b4afb7c149dc New module 'cbrtl'.
Bruno Haible <bruno@clisp.org>
parents: 16534
diff changeset
79 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
80
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
81 #if GNULIB_TEST_CEILF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceilf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
83 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
84 #if GNULIB_TEST_CEIL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceil, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
86 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
87 #if GNULIB_TEST_CEILL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::ceill, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
89 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
90
15911
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
91 #if GNULIB_TEST_COPYSIGNF
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignf, float, (float, float));
bc21ee3c09aa New module 'copysignf'.
Bruno Haible <bruno@clisp.org>
parents: 15908
diff changeset
93 #endif
15908
2f40da163bc2 copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
94 #if GNULIB_TEST_COPYSIGN
2f40da163bc2 copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
95 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysign, double, (double, double));
2f40da163bc2 copysign: Provide replacement.
Bruno Haible <bruno@clisp.org>
parents: 15899
diff changeset
96 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
97 #if GNULIB_TEST_COPYSIGNL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::copysignl, long double,
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
99 (long double, long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
100 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
101
15875
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
102 #if GNULIB_TEST_COSF
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
diff changeset
103 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosf, float, (float));
7eede30e6658 New module 'cosf'.
Bruno Haible <bruno@clisp.org>
parents: 15872
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::cos, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
106 #if GNULIB_TEST_COSL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
107 SIGNATURE_CHECK (GNULIB_NAMESPACE::cosl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
108 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
109
15896
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
110 #if GNULIB_TEST_COSHF
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
diff changeset
111 SIGNATURE_CHECK (GNULIB_NAMESPACE::coshf, float, (float));
df1794ad8606 New module 'coshf'.
Bruno Haible <bruno@clisp.org>
parents: 15893
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::cosh, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
114
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
115 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erf, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
116
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
117 //SIGNATURE_CHECK (GNULIB_NAMESPACE::erfc, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
118
15860
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
119 #if GNULIB_TEST_EXPF
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float));
e6ff40a73d85 New module 'expf'.
Bruno Haible <bruno@clisp.org>
parents: 15857
diff changeset
121 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122 //SIGNATURE_CHECK (GNULIB_NAMESPACE::exp, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
123 #if GNULIB_TEST_EXPL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
124 SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
125 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
126
16581
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16536
diff changeset
127 #if GNULIB_TEST_EXPM1
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16536
diff changeset
128 SIGNATURE_CHECK (GNULIB_NAMESPACE::expm1, double, (double));
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16536
diff changeset
129 #endif
8e7ddab445f4 New module 'expm1'.
Bruno Haible <bruno@clisp.org>
parents: 16536
diff changeset
130
15828
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
131 #if GNULIB_TEST_FABSF
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
132 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float));
36ce57192e3b New module 'fabsf'.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
133 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134 //SIGNATURE_CHECK (GNULIB_NAMESPACE::fabs, double, (double));
16407
dfbb60f78aef Tests for module 'fabsl'.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
135 #if GNULIB_TEST_FABSL
dfbb60f78aef Tests for module 'fabsl'.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
136 SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsl, long double, (long double));
dfbb60f78aef Tests for module 'fabsl'.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
137 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
138
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
139 #if GNULIB_TEST_FLOORF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
140 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
141 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
142 #if GNULIB_TEST_FLOOR
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
143 SIGNATURE_CHECK (GNULIB_NAMESPACE::floor, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
144 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
145 #if GNULIB_TEST_FLOORL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
146 SIGNATURE_CHECK (GNULIB_NAMESPACE::floorl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
147 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
148
15832
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
149 #if GNULIB_TEST_FMODF
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
150 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodf, float, (float, float));
022f031c4bdf New module 'fmodf'.
Bruno Haible <bruno@clisp.org>
parents: 15828
diff changeset
151 #endif
16486
8b3ead70232c fmod-ieee: Work around test failures on OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16467
diff changeset
152 #if GNULIB_TEST_FMOD
8b3ead70232c fmod-ieee: Work around test failures on OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16467
diff changeset
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmod, double, (double, double));
8b3ead70232c fmod-ieee: Work around test failures on OSF/1, mingw.
Bruno Haible <bruno@clisp.org>
parents: 16467
diff changeset
154 #endif
16411
2c846fbb8f16 Tests for module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16409
diff changeset
155 #if GNULIB_TEST_FMODL
2c846fbb8f16 Tests for module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16409
diff changeset
156 SIGNATURE_CHECK (GNULIB_NAMESPACE::fmodl, long double,
2c846fbb8f16 Tests for module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16409
diff changeset
157 (long double, long double));
2c846fbb8f16 Tests for module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents: 16409
diff changeset
158 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
159
15841
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
160 #if GNULIB_TEST_FREXPF
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
161 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpf, float, (float, int *));
d26d12e238e1 New module 'frexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15838
diff changeset
162 #endif
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
163 #if GNULIB_TEST_FREXP
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
164 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexp, double, (double, int *));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
165 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
166 #if GNULIB_TEST_FREXPL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
167 SIGNATURE_CHECK (GNULIB_NAMESPACE::frexpl, long double, (long double, int *));
15982
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
168 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
169
16514
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16486
diff changeset
170 #if GNULIB_TEST_HYPOTF
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16486
diff changeset
171 SIGNATURE_CHECK (GNULIB_NAMESPACE::hypotf, float, (float, float));
befd75611259 New module 'hypotf'.
Bruno Haible <bruno@clisp.org>
parents: 16486
diff changeset
172 #endif
16530
3cae6aa4577f hypot-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16519
diff changeset
173 #if GNULIB_TEST_HYPOT
3cae6aa4577f hypot-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16519
diff changeset
174 SIGNATURE_CHECK (GNULIB_NAMESPACE::hypot, double, (double, double));
3cae6aa4577f hypot-ieee: Work around test failure on OSF/1 and native Windows.
Bruno Haible <bruno@clisp.org>
parents: 16519
diff changeset
175 #endif
16519
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
176 #if GNULIB_TEST_HYPOTL
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
177 SIGNATURE_CHECK (GNULIB_NAMESPACE::hypotl, long double,
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
178 (long double, long double));
52c75970f518 New module 'hypotl'.
Bruno Haible <bruno@clisp.org>
parents: 16514
diff changeset
179 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
180
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
181 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j0, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
182
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
183 //SIGNATURE_CHECK (GNULIB_NAMESPACE::j1, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
184
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
185 //SIGNATURE_CHECK (GNULIB_NAMESPACE::jn, double, (int, double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
186
15847
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
187 #if GNULIB_TEST_LDEXPF
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
188 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpf, float, (float, int));
cd98f212217e New module 'ldexpf'.
Bruno Haible <bruno@clisp.org>
parents: 15841
diff changeset
189 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
190 //SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexp, double, (double, int));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
191 #if GNULIB_TEST_LDEXPL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
192 SIGNATURE_CHECK (GNULIB_NAMESPACE::ldexpl, long double, (long double, int));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
193 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
194
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
195 //SIGNATURE_CHECK (GNULIB_NAMESPACE::lgamma, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
196
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
197 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log10, double, (double));
16420
5f82329020f5 Tests for module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16416
diff changeset
198 #if GNULIB_TEST_LOG10L
5f82329020f5 Tests for module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16416
diff changeset
199 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10l, long double, (long double));
5f82329020f5 Tests for module 'log10l'.
Bruno Haible <bruno@clisp.org>
parents: 16416
diff changeset
200 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
201
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
202 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log1p, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
203
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
204 //SIGNATURE_CHECK (GNULIB_NAMESPACE::logb, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
205
15863
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
206 #if GNULIB_TEST_LOGF
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
207 SIGNATURE_CHECK (GNULIB_NAMESPACE::logf, float, (float));
c2fa2febdb1f New module 'logf'.
Bruno Haible <bruno@clisp.org>
parents: 15860
diff changeset
208 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
209 //SIGNATURE_CHECK (GNULIB_NAMESPACE::log, double, (double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
210 #if GNULIB_TEST_LOGL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
211 SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
212 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
213
15866
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
214 #if GNULIB_TEST_LOG10F
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
215 SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float));
215da3b412e0 New module 'log10f'.
Bruno Haible <bruno@clisp.org>
parents: 15863
diff changeset
216 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
217
15838
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
218 #if GNULIB_TEST_MODFF
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
219 SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *));
0e07b354626a New module 'modff'.
Bruno Haible <bruno@clisp.org>
parents: 15832
diff changeset
220 #endif
16467
c5b61bdb6da4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 16420
diff changeset
221 #if GNULIB_TEST_MODF
c5b61bdb6da4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 16420
diff changeset
222 SIGNATURE_CHECK (GNULIB_NAMESPACE::modf, double, (double, double *));
c5b61bdb6da4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
Bruno Haible <bruno@clisp.org>
parents: 16420
diff changeset
223 #endif
16409
e0968c2ae37e Tests for module 'modfl'.
Bruno Haible <bruno@clisp.org>
parents: 16407
diff changeset
224 #if GNULIB_TEST_MODFL
e0968c2ae37e Tests for module 'modfl'.
Bruno Haible <bruno@clisp.org>
parents: 16407
diff changeset
225 SIGNATURE_CHECK (GNULIB_NAMESPACE::modfl, long double,
e0968c2ae37e Tests for module 'modfl'.
Bruno Haible <bruno@clisp.org>
parents: 16407
diff changeset
226 (long double, long double *));
e0968c2ae37e Tests for module 'modfl'.
Bruno Haible <bruno@clisp.org>
parents: 16407
diff changeset
227 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
228
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
229 //SIGNATURE_CHECK (GNULIB_NAMESPACE::nextafter, double, (double, double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
230
15869
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
231 #if GNULIB_TEST_POWF
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
232 SIGNATURE_CHECK (GNULIB_NAMESPACE::powf, float, (float, float));
7fb8367bf966 New module 'powf'.
Bruno Haible <bruno@clisp.org>
parents: 15866
diff changeset
233 #endif
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
234 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pow, double, (double, double));
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
235
16414
8dacc3b05ad8 Tests for module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
236 #if GNULIB_TEST_REMAINDERF
8dacc3b05ad8 Tests for module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
237 SIGNATURE_CHECK (GNULIB_NAMESPACE::remainderf, float, (float, float));
8dacc3b05ad8 Tests for module 'remainderf'.
Bruno Haible <bruno@clisp.org>
parents: 16412
diff changeset
238 #endif
16412
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16411
diff changeset
239 #if GNULIB_TEST_REMAINDER
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16411
diff changeset
240 SIGNATURE_CHECK (GNULIB_NAMESPACE::remainder, double, (double, double));
a50ff00ce4ee remainder: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 16411
diff changeset
241 #endif
16416
7d97985fae86 Tests for module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16414
diff changeset
242 #if GNULIB_TEST_REMAINDERL
7d97985fae86 Tests for module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16414
diff changeset
243 SIGNATURE_CHECK (GNULIB_NAMESPACE::remainderl, long double,
7d97985fae86 Tests for module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16414
diff changeset
244 (long double, long double));
7d97985fae86 Tests for module 'remainderl'.
Bruno Haible <bruno@clisp.org>
parents: 16414
diff changeset
245 #endif
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
246
15918
1ffbb15d4325 New module 'rintf'.
Bruno Haible <bruno@clisp.org>
parents: 15917
diff changeset
247 #if GNULIB_TEST_RINTF
1ffbb15d4325 New module 'rintf'.
Bruno Haible <bruno@clisp.org>
parents: 15917
diff changeset
248 SIGNATURE_CHECK (GNULIB_NAMESPACE::rintf, float, (float));
1ffbb15d4325 New module 'rintf'.
Bruno Haible <bruno@clisp.org>
parents: 15917
diff changeset
249 #endif
15917
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
250 #if GNULIB_TEST_RINT
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
251 SIGNATURE_CHECK (GNULIB_NAMESPACE::rint, double, (double));
2a90104cab5b rint: Support for MSVC.
Bruno Haible <bruno@clisp.org>
parents: 15913
diff changeset
252 #endif
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
253 #if GNULIB_TEST_RINTL
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
254 SIGNATURE_CHECK (GNULIB_NAMESPACE::rintl, long double, (long double));
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
255 #endif
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents: 15918
diff changeset
256
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
257 #if GNULIB_TEST_ROUNDF
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
258 SIGNATURE_CHECK (GNULIB_NAMESPACE::roundf, float, (float));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
259 #endif
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
260 #if GNULIB_TEST_ROUND
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
261 SIGNATURE_CHECK (GNULIB_NAMESPACE::round, double, (double));
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
262 #endif
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12960
diff changeset
263 #if GNULIB_TEST_ROUNDL
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
264 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
265 #endif
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
266
16045
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
267 #if GNULIB_TEST_SINF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
268 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
269 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
270 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sin, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
271 #if GNULIB_TEST_SINL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
272 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
273 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
274
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
275 #if GNULIB_TEST_SINHF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
276 SIGNATURE_CHECK (GNULIB_NAMESPACE::sinhf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
277 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
278 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sinh, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
279
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
280 #if GNULIB_TEST_SQRTF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
281 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
282 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
283 //SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrt, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
284 #if GNULIB_TEST_SQRTL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
285 SIGNATURE_CHECK (GNULIB_NAMESPACE::sqrtl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
286 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
287
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
288 #if GNULIB_TEST_TANF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
289 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
290 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
291 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tan, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
292 #if GNULIB_TEST_TANL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
293 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
294 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
295
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
296 #if GNULIB_TEST_TANHF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
297 SIGNATURE_CHECK (GNULIB_NAMESPACE::tanhf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
298 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
299 //SIGNATURE_CHECK (GNULIB_NAMESPACE::tanh, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
300
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
301 #if GNULIB_TEST_TRUNCF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
302 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncf, float, (float));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
303 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
304 #if GNULIB_TEST_TRUNC
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
305 SIGNATURE_CHECK (GNULIB_NAMESPACE::trunc, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
306 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
307 #if GNULIB_TEST_TRUNCL
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
308 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
309 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
310
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
311 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y0, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
312
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
313 //SIGNATURE_CHECK (GNULIB_NAMESPACE::y1, double, (double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
314
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
315 //SIGNATURE_CHECK (GNULIB_NAMESPACE::yn, double, (int, double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
316
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
317 #if GNULIB_TEST_ISFINITE
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
318 # ifdef isfinite
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
319 # error "isfinite should not be a macro in C++"
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
320 # endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
321 REAL_FLOATING_CHECK (isfinite, int, (float), int, (double), int, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
322 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
323
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
324 #if GNULIB_TEST_ISINF
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
325 # ifdef isinf
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
326 # error "isinf should not be a macro in C++"
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
327 # endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
328 REAL_FLOATING_CHECK (isinf, int, (float), int, (double), int, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
329 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
330
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
331 #if GNULIB_TEST_ISNAN
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
332 # ifdef isnan
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
333 # error "isnan should not be a macro in C++"
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
334 # endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
335 REAL_FLOATING_CHECK (isnan, int, (float), int, (double), int, (long double));
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
336 #endif
708181030fbc math tests: Cosmetics.
Bruno Haible <bruno@clisp.org>
parents: 15982
diff changeset
337
15982
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
338 #if GNULIB_TEST_SIGNBIT
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
339 # ifdef signbit
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
340 # error "signbit should not be a macro in C++"
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
341 # endif
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
342 REAL_FLOATING_CHECK (signbit, int, (float), int, (double), int, (long double));
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
343 #endif
a63613865d90 isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
344
12960
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
345
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
346 int
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
347 main ()
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
348 {
1583e59dfb92 Tests of module 'math' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
349 }