Remove the str(n)cmp inlines from string/bits/string2.h. The strncmp
[glibc.git] / math / libm-test-carg.inc
blobe92d4fbcceb5a0a5b7524ed0e65ed9c001e45a75
1 /* Test carg.
2    Copyright (C) 1997-2017 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
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 static const struct test_c_f_data carg_test_data[] =
20   {
21     /* carg (x + iy) is specified as atan2 (y, x) */
23     /* carg (inf + i y) == +0 for finite y > 0.  */
24     TEST_c_f (carg, plus_infty, 2.0, 0),
26     /* carg (inf + i y) == -0 for finite y < 0.  */
27     TEST_c_f (carg, plus_infty, -2.0, minus_zero),
29     /* carg(x + i inf) == pi/2 for finite x.  */
30     TEST_c_f (carg, 10.0, plus_infty, lit_pi_2_d),
32     /* carg(x - i inf) == -pi/2 for finite x.  */
33     TEST_c_f (carg, 10.0, minus_infty, -lit_pi_2_d),
35     /* carg (-inf + i y) == +pi for finite y > 0.  */
36     TEST_c_f (carg, minus_infty, 10.0, lit_pi),
38     /* carg (-inf + i y) == -pi for finite y < 0.  */
39     TEST_c_f (carg, minus_infty, -10.0, -lit_pi),
41     TEST_c_f (carg, plus_infty, plus_infty, lit_pi_4_d),
43     TEST_c_f (carg, plus_infty, minus_infty, -lit_pi_4_d),
45     TEST_c_f (carg, minus_infty, plus_infty, lit_pi_3_m_4_d),
47     TEST_c_f (carg, minus_infty, minus_infty, -lit_pi_3_m_4_d),
49     TEST_c_f (carg, qnan_value, qnan_value, qnan_value),
51     AUTO_TESTS_c_f (carg),
52   };
54 static void
55 carg_test (void)
57   ALL_RM_TEST (carg, 0, carg_test_data, RUN_TEST_LOOP_c_f, END);
61  * Local Variables:
62  * mode:c
63  * End:
64  */