aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-29 01:55:42 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-29 01:55:42 +0000
commit169d7f11ad61038cefb242ff978684667a0b5c86 (patch)
tree5d2dc78684701242d938cdb4a6585ee60135dbbe
parent43be4ca2bb217f258a4d23d4be1d3d1378ffe11b (diff)
downloadglibc-169d7f11ad61038cefb242ff978684667a0b5c86.tar
glibc-169d7f11ad61038cefb242ff978684667a0b5c86.tar.gz
glibc-169d7f11ad61038cefb242ff978684667a0b5c86.tar.bz2
glibc-169d7f11ad61038cefb242ff978684667a0b5c86.zip
Move misplaced llround test and add lround test from bug 2561.
-rw-r--r--ChangeLog7
-rw-r--r--math/libm-test.inc3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index eecc50b738..c665b94e93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-29 Joseph Myers <joseph@codesourcery.com>
+
+ * math/libm-test.inc (llround_test): Move one test from
+ lround_test. Use TEST_f_L in moved test.
+ (lround_test): Move misplaced test to llround_test. Add testcase
+ from bug 2561.
+
2012-02-28 Ulrich Drepper <drepper@gmail.com>
* sysdeps/x86_64/fpu/e_expf.S: New file.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 1016753c78..54d1aca7d5 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -4395,7 +4395,7 @@ lround_test (void)
TEST_f_l (lround, 1073741824.01, 1073741824);
# if LONG_MAX > 281474976710656
TEST_f_l (lround, 281474976710656.025, 281474976710656);
- TEST_f_l (llround, -3.65309740835E17, -365309740835000000);
+ TEST_f_l (lround, 18014398509481974, 18014398509481974);
# endif
TEST_f_l (lround, 2097152.5, 2097153);
TEST_f_l (lround, -2097152.5, -2097153);
@@ -4438,6 +4438,7 @@ llround_test (void)
TEST_f_L (llround, -2097152.5, -2097153);
TEST_f_L (llround, 34359738368.5, 34359738369ll);
TEST_f_L (llround, -34359738368.5, -34359738369ll);
+ TEST_f_L (llround, -3.65309740835E17, -365309740835000000LL);
#endif
/* Test boundary conditions. */