aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-05-09 14:33:30 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-05-09 14:33:30 +0000
commit0d3e777af2f2818111e2699982f64af16ac032b5 (patch)
tree14a34363b054ae5895259684fb98c07fb53143ff
parent66c13581afc5d348089bb9dcb68142ee3d26006e (diff)
downloadglibc-0d3e777af2f2818111e2699982f64af16ac032b5.zip
glibc-0d3e777af2f2818111e2699982f64af16ac032b5.tar.gz
glibc-0d3e777af2f2818111e2699982f64af16ac032b5.tar.bz2
Use M_SQRT1_2l instead of local M_SQRT_2_2 in libm-test.inc.
-rw-r--r--ChangeLog3
-rw-r--r--math/libm-test.inc3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 946d093..b6eae59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 8845054..c508af6 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -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);