This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Consistently use TEST_f_L in tests of llrint and llround
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 15 May 2013 17:04:49 +0000
- Subject: Consistently use TEST_f_L in tests of llrint and llround
Some tests of llrint and llround wrongly used TEST_f_l ("long" return
value) instead of TEST_f_L ("long long" return value). I've committed
as obvious this patch to fix this. Tested x86_64 and x86.
2013-05-15 Joseph Myers <joseph@codesourcery.com>
* math/libm-test.inc (llrint_test): Consistently use TEST_f_L
instead of TEST_f_l.
(llrint_test_tonearest): Likewise.
(llrint_test_towardzero): Likewise.
(llrint_test_downward): Likewise.
(llrint_test_upward): Likewise.
(llround_test): Likewise.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index f1e122d..af6d28c 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -10560,7 +10560,7 @@ llrint_test (void)
TEST_f_L (llrint, 8388600.3L, 8388600);
TEST_f_L (llrint, -8388600.3L, -8388600);
- TEST_f_l (llrint, 1071930.0008, 1071930);
+ TEST_f_L (llrint, 1071930.0008, 1071930);
/* Test boundary conditions. */
/* 0x1FFFFF */
@@ -10695,7 +10695,7 @@ llrint_test_tonearest (void)
TEST_f_L (llrint, 8388600.3L, 8388600);
TEST_f_L (llrint, -8388600.3L, -8388600);
- TEST_f_l (llrint, 1071930.0008, 1071930);
+ TEST_f_L (llrint, 1071930.0008, 1071930);
/* Test boundary conditions. */
/* 0x1FFFFF */
@@ -10833,7 +10833,7 @@ llrint_test_towardzero (void)
TEST_f_L (llrint, 8388600.3L, 8388600);
TEST_f_L (llrint, -8388600.3L, -8388600);
- TEST_f_l (llrint, 1071930.0008, 1071930);
+ TEST_f_L (llrint, 1071930.0008, 1071930);
/* Test boundary conditions. */
/* 0x1FFFFF */
@@ -10971,7 +10971,7 @@ llrint_test_downward (void)
TEST_f_L (llrint, 8388600.3L, 8388600);
TEST_f_L (llrint, -8388600.3L, -8388601);
- TEST_f_l (llrint, 1071930.0008, 1071930);
+ TEST_f_L (llrint, 1071930.0008, 1071930);
/* Test boundary conditions. */
/* 0x1FFFFF */
@@ -11105,7 +11105,7 @@ llrint_test_upward (void)
TEST_f_L (llrint, 8388600.3L, 8388601);
TEST_f_L (llrint, -8388600.3L, -8388600);
#ifndef TEST_FLOAT
- TEST_f_l (llrint, 1071930.0008, 1071931);
+ TEST_f_L (llrint, 1071930.0008, 1071931);
#endif
/* Test boundary conditions. */
/* 0x1FFFFF */
@@ -11505,7 +11505,7 @@ llround_test (void)
TEST_f_L (llround, -1.5, -2);
TEST_f_L (llround, 22514.5, 22515);
TEST_f_L (llround, -22514.5, -22515);
- TEST_f_l (llround, 1071930.0008, 1071930);
+ TEST_f_L (llround, 1071930.0008, 1071930);
#ifndef TEST_FLOAT
TEST_f_L (llround, 2097152.5, 2097153);
TEST_f_L (llround, -2097152.5, -2097153);
--
Joseph S. Myers
joseph@codesourcery.com