Use M_SQRT1_2l instead of local M_SQRT_2_2 in libm-test.inc.

This commit is contained in:
Joseph Myers 2013-05-09 14:33:30 +00:00
parent 66c13581af
commit 0d3e777af2
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2013-05-09 Joseph Myers <joseph@codesourcery.com>
* math/libm-test.inc (M_SQRT_2_2): Remove macro.
(csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
* math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
M_PI_4l.

View File

@ -212,7 +212,6 @@
#define M_PI2_LOG10El 0.682188176920920673742891812715677885L
#define M_PI4_LOG10El 0.341094088460460336871445906357838943L
#define M_PI_LOG10El 1.364376353841841347485783625431355770L
#define M_SQRT_2_2 0.70710678118654752440084436210484903L /* sqrt (2) / 2 */
#define ulps_file_name "ULPs" /* Name of the ULPs file. */
static FILE *ulps_file; /* File to document difference. */
@ -7081,7 +7080,7 @@ csqrt_test (void)
TEST_c_c (csqrt, -2, 3, 0.89597747612983812471573375529004348L, 1.6741492280355400404480393008490519L);
/* Principal square root should be returned (i.e., non-negative real
part). */
TEST_c_c (csqrt, 0, -1, M_SQRT_2_2, -M_SQRT_2_2);
TEST_c_c (csqrt, 0, -1, M_SQRT1_2l, -M_SQRT1_2l);
TEST_c_c (csqrt, 0x1.fffffep+127L, 0x1.fffffep+127L, 2.026714405498316804978751017492482558075e+19L, 8.394925938143272988211878516208015586281e+18L);
TEST_c_c (csqrt, 0x1.fffffep+127L, 1.0L, 1.844674352395372953599975585936590505260e+19L, 2.710505511993121390769065968615872097053e-20L);