1 /* Copyright (C) 1997-2017 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Andreas Jaeger <aj@suse.de>, 1997.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 /* The bulk of the implementation, other than the tests of individual
20 functions, is in a separate file. */
21 #include "libm-test-driver.c"
23 /****************************************************************************
24 Tests for single functions of libm.
25 Please keep them alphabetically sorted!
26 ****************************************************************************/
28 #include "libm-test-acos.c"
29 #include "libm-test-acosh.c"
30 #include "libm-test-asin.c"
31 #include "libm-test-asinh.c"
32 #include "libm-test-atan.c"
33 #include "libm-test-atan2.c"
34 #include "libm-test-atanh.c"
35 #include "libm-test-cabs.c"
36 #include "libm-test-cacos.c"
37 #include "libm-test-cacosh.c"
38 #include "libm-test-canonicalize.c"
39 #include "libm-test-carg.c"
40 #include "libm-test-casin.c"
41 #include "libm-test-casinh.c"
42 #include "libm-test-catan.c"
43 #include "libm-test-catanh.c"
44 #include "libm-test-cbrt.c"
45 #include "libm-test-ccos.c"
46 #include "libm-test-ccosh.c"
47 #include "libm-test-ceil.c"
48 #include "libm-test-cexp.c"
49 #include "libm-test-cimag.c"
50 #include "libm-test-clog.c"
51 #include "libm-test-clog10.c"
52 #include "libm-test-conj.c"
53 #include "libm-test-copysign.c"
54 #include "libm-test-cos.c"
55 #include "libm-test-cosh.c"
56 #include "libm-test-cpow.c"
57 #include "libm-test-cproj.c"
58 #include "libm-test-creal.c"
59 #include "libm-test-csin.c"
60 #include "libm-test-csinh.c"
61 #include "libm-test-csqrt.c"
62 #include "libm-test-ctan.c"
63 #include "libm-test-ctanh.c"
64 #include "libm-test-erf.c"
65 #include "libm-test-erfc.c"
66 #include "libm-test-exp.c"
67 #include "libm-test-exp10.c"
68 #include "libm-test-exp2.c"
69 #include "libm-test-expm1.c"
70 #include "libm-test-fabs.c"
71 #include "libm-test-fdim.c"
72 #include "libm-test-floor.c"
73 #include "libm-test-fma.c"
74 #include "libm-test-fmax.c"
75 #include "libm-test-fmaxmag.c"
76 #include "libm-test-fmin.c"
77 #include "libm-test-fminmag.c"
78 #include "libm-test-fmod.c"
79 #include "libm-test-fpclassify.c"
80 #include "libm-test-frexp.c"
81 #include "libm-test-fromfp.c"
82 #include "libm-test-fromfpx.c"
83 #include "libm-test-getpayload.c"
84 #include "libm-test-hypot.c"
85 #include "libm-test-ilogb.c"
86 #include "libm-test-iscanonical.c"
87 #include "libm-test-iseqsig.c"
88 #include "libm-test-isfinite.c"
89 #include "libm-test-isgreater.c"
90 #include "libm-test-isgreaterequal.c"
91 #include "libm-test-isinf.c"
92 #include "libm-test-isless.c"
93 #include "libm-test-islessequal.c"
94 #include "libm-test-islessgreater.c"
95 #include "libm-test-isnan.c"
96 #include "libm-test-isnormal.c"
97 #include "libm-test-issignaling.c"
98 #include "libm-test-issubnormal.c"
99 #include "libm-test-isunordered.c"
100 #include "libm-test-iszero.c"
101 #include "libm-test-j0.c"
102 #include "libm-test-j1.c"
103 #include "libm-test-jn.c"
104 #include "libm-test-lgamma.c"
105 #include "libm-test-llogb.c"
106 #include "libm-test-llrint.c"
107 #include "libm-test-llround.c"
108 #include "libm-test-log.c"
109 #include "libm-test-log10.c"
110 #include "libm-test-log1p.c"
111 #include "libm-test-log2.c"
112 #include "libm-test-logb.c"
113 #include "libm-test-lrint.c"
114 #include "libm-test-lround.c"
115 #include "libm-test-modf.c"
116 #include "libm-test-nearbyint.c"
117 #include "libm-test-nextafter.c"
118 #include "libm-test-nextdown.c"
119 #include "libm-test-nexttoward.c"
120 #include "libm-test-nextup.c"
121 #include "libm-test-pow.c"
122 #include "libm-test-remainder.c"
123 #include "libm-test-remquo.c"
124 #include "libm-test-rint.c"
125 #include "libm-test-round.c"
126 #include "libm-test-roundeven.c"
127 #include "libm-test-scalb.c"
128 #include "libm-test-scalbln.c"
129 #include "libm-test-scalbn.c"
130 #include "libm-test-setpayload.c"
131 #include "libm-test-setpayloadsig.c"
132 #include "libm-test-signbit.c"
133 #include "libm-test-significand.c"
134 #include "libm-test-sin.c"
135 #include "libm-test-sincos.c"
136 #include "libm-test-sinh.c"
137 #include "libm-test-sqrt.c"
138 #include "libm-test-tan.c"
139 #include "libm-test-tanh.c"
140 #include "libm-test-tgamma.c"
141 #include "libm-test-totalorder.c"
142 #include "libm-test-totalordermag.c"
143 #include "libm-test-trunc.c"
144 #include "libm-test-ufromfp.c"
145 #include "libm-test-ufromfpx.c"
146 #include "libm-test-y0.c"
147 #include "libm-test-y1.c"
148 #include "libm-test-yn.c"
153 /* Keep the tests a wee bit ordered (according to ISO C99). */
154 /* Classification macros: */
167 /* Trigonometric functions: */
177 /* Hyperbolic functions: */
185 /* Exponential and logarithmic functions: */
206 /* Power and absolute value functions: */
213 /* Error and gamma functions: */
220 /* Nearest integer functions: */
237 /* Remainder functions: */
243 /* Manipulation functions: */
250 /* maximum, minimum and positive difference functions */
257 /* Multiply and add: */
260 /* Comparison macros: */
263 isgreaterequal_test ();
266 islessgreater_test ();
269 /* Total order functions: */
271 totalordermag_test ();
273 /* Canonicalize functions: */
274 canonicalize_test ();
279 setpayloadsig_test ();
281 /* Complex functions: */
306 /* Bessel functions: */