about summary refs log tree commit diff
path: root/math/libm-test.inc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-02-12 21:00:59 +0000
committerUlrich Drepper <drepper@redhat.com>2004-02-12 21:00:59 +0000
commit39007ae35d9deebe05465bb3aa73b08b8b94b35b (patch)
treeb2b07f8e5cda0ddc53b070c29d6b5af7799b3b73 /math/libm-test.inc
parent02860e478169f80f2ce15d58703929ac6ad7e4b0 (diff)
downloadglibc-39007ae35d9deebe05465bb3aa73b08b8b94b35b.tar.gz
glibc-39007ae35d9deebe05465bb3aa73b08b8b94b35b.tar.xz
glibc-39007ae35d9deebe05465bb3aa73b08b8b94b35b.zip
Update.
2004-02-12  Jakub Jelinek  <jakub@redhat.com>

	* math/libm-test.inc (lrint_test): Add new test.
	(llrint_test, lround_test, llround_test): Likewise.
	* sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Fix special case
	with result taking up 48 bits.
	* sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
	* sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
	* sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Fix special case
	with result taking up 31 bits.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r--math/libm-test.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index c009d61d49..bad3948f1d 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -3104,6 +3104,9 @@ lrint_test (void)
   TEST_f_l (lrint, 1071930.0008, 1071930);
 #ifndef TEST_FLOAT
   TEST_f_l (lrint, 1073741824.01, 1073741824);
+# if LONG_MAX > 281474976710656
+  TEST_f_l (lrint, 281474976710656.025, 281474976710656);
+# endif
 #endif
 
   END (lrint);
@@ -3143,6 +3146,8 @@ llrint_test (void)
   TEST_f_L (llrint, 2199023255552.0, 2199023255552LL);
   /* 0x40000000000 */
   TEST_f_L (llrint, 4398046511104.0, 4398046511104LL);
+  /* 0x1000000000000 */
+  TEST_f_L (llrint, 281474976710656.0, 281474976710656LL);
   /* 0x10000000000000 */
   TEST_f_L (llrint, 4503599627370496.0, 4503599627370496LL);
   /* 0x10000080000000 */
@@ -3321,6 +3326,9 @@ lround_test (void)
   TEST_f_l (lround, 1071930.0008, 1071930);
 #ifndef TEST_FLOAT
   TEST_f_l (lround, 1073741824.01, 1073741824);
+# if LONG_MAX > 281474976710656
+  TEST_f_l (lround, 281474976710656.025, 281474976710656);
+# endif
   TEST_f_l (lround, 2097152.5, 2097153);
   TEST_f_l (lround, -2097152.5, -2097153);
 #endif
@@ -3364,6 +3372,8 @@ llround_test (void)
   TEST_f_L (llround, 2199023255552.0, 2199023255552LL);
   /* 0x40000000000 */
   TEST_f_L (llround, 4398046511104.0, 4398046511104LL);
+  /* 0x1000000000000 */
+  TEST_f_L (llround, 281474976710656.0, 281474976710656LL);
   /* 0x10000000000000 */
   TEST_f_L (llround, 4503599627370496.0, 4503599627370496LL);
   /* 0x10000080000000 */