This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-558-g5e22180


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  5e2218006061c9225ab6e761dad849b4baab632e (commit)
      from  77f143fdb4770278f90e8f64d673b7e84d84a99f (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5e2218006061c9225ab6e761dad849b4baab632e

commit 5e2218006061c9225ab6e761dad849b4baab632e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Apr 24 20:14:15 2013 +0000

    Add catan, catanh tests at +/- 1 and +/- i.

diff --git a/ChangeLog b/ChangeLog
index bd97c4c..f3efba4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/libm-test.inc (catan_test): Add more tests.
+	(catanh_test): Likewise.
+
 	* math/s_catanf.c (__catanf): Use suffixed floating-point
 	constants.
 	* math/s_catanhf.c (__catanhf): Likewise.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 447b603..00edede 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -4254,6 +4254,15 @@ catan_test (void)
   TEST_c_c (catan, 0, minus_zero, 0, minus_zero);
   TEST_c_c (catan, minus_zero, minus_zero, minus_zero, minus_zero);
 
+  TEST_c_c (catan, 1.0L, plus_zero, M_PI_4l, plus_zero);
+  TEST_c_c (catan, 1.0L, minus_zero, M_PI_4l, minus_zero);
+  TEST_c_c (catan, -1.0L, plus_zero, -M_PI_4l, plus_zero);
+  TEST_c_c (catan, -1.0L, minus_zero, -M_PI_4l, minus_zero);
+  TEST_c_c (catan, plus_zero, 1.0L, plus_zero, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catan, minus_zero, 1.0L, minus_zero, plus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catan, plus_zero, -1.0L, plus_zero, minus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catan, minus_zero, -1.0L, minus_zero, minus_infty, DIVIDE_BY_ZERO_EXCEPTION);
+
   TEST_c_c (catan, plus_infty, plus_infty, M_PI_2l, 0);
   TEST_c_c (catan, plus_infty, minus_infty, M_PI_2l, minus_zero);
   TEST_c_c (catan, minus_infty, plus_infty, -M_PI_2l, 0);
@@ -4350,6 +4359,15 @@ catanh_test (void)
   TEST_c_c (catanh, 0, minus_zero, 0.0, minus_zero);
   TEST_c_c (catanh, minus_zero, minus_zero, minus_zero, minus_zero);
 
+  TEST_c_c (catanh, 1.0L, plus_zero, plus_infty, plus_zero, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catanh, 1.0L, minus_zero, plus_infty, minus_zero, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catanh, -1.0L, plus_zero, minus_infty, plus_zero, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catanh, -1.0L, minus_zero, minus_infty, minus_zero, DIVIDE_BY_ZERO_EXCEPTION);
+  TEST_c_c (catanh, plus_zero, 1.0L, plus_zero, M_PI_4l);
+  TEST_c_c (catanh, minus_zero, 1.0L, minus_zero, M_PI_4l);
+  TEST_c_c (catanh, plus_zero, -1.0L, plus_zero, -M_PI_4l);
+  TEST_c_c (catanh, minus_zero, -1.0L, minus_zero, -M_PI_4l);
+
   TEST_c_c (catanh, plus_infty, plus_infty, 0.0, M_PI_2l);
   TEST_c_c (catanh, plus_infty, minus_infty, 0.0, -M_PI_2l);
   TEST_c_c (catanh, minus_infty, plus_infty, minus_zero, M_PI_2l);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    3 +++
 math/libm-test.inc |   18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]