This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-368-gaa4a2ae
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 Mar 2012 01:12:22 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-368-gaa4a2ae
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via aa4a2ae1dbc2c7a3469ec13610f0d7a84e3bfc79 (commit)
from 7c10fd3515f983ca732b2166ccffebbf83603f1f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=aa4a2ae1dbc2c7a3469ec13610f0d7a84e3bfc79
commit aa4a2ae1dbc2c7a3469ec13610f0d7a84e3bfc79
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Mar 14 01:12:05 2012 +0000
Add tests for hypot overflow/underflow.
diff --git a/ChangeLog b/ChangeLog
index b65f68a..2915e96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-14 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #13840]
+ * math/libm-test.inc (hypot_test): Add more tests.
+
2012-03-13 David S. Miller <davem@davemloft.net>
[BZ #13840]
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 39cda66..191f359 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -3557,6 +3557,19 @@ hypot_test (void)
TEST_ff_f (hypot, 0.75L, 1.25L, 1.45773797371132511771853821938639577L);
+#if !(defined TEST_FLOAT && defined TEST_INLINE)
+ TEST_ff_f (hypot, 0x3p125L, 0x4p125L, 0x5p125L);
+ TEST_ff_f (hypot, 0x1.234566p-126L, 0x1.234566p-126L, 1.891441686191081936598531534017449451173e-38L);
+#endif
+
+#ifndef TEST_FLOAT
+ TEST_ff_f (hypot, 0x3p1021L, 0x4p1021L, 0x5p1021L);
+#endif
+
+#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 && !defined TEST_INLINE
+ TEST_ff_f (hypot, 0x3p16381L, 0x4p16381L, 0x5p16381L);
+#endif
+
END (hypot);
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
math/libm-test.inc | 13 +++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources