diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-29 18:45:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-29 18:45:41 +0000 |
commit | 9949bc63c0cb69a443e1a4d6558c2ec2a562da60 (patch) | |
tree | 23ddf30aaeb4dcf0efda9bede4f67434ff5d5e07 | |
parent | 38447cbe4e9672c643e598f81cad15f7004d52ed (diff) | |
download | glibc-9949bc63c0cb69a443e1a4d6558c2ec2a562da60.zip glibc-9949bc63c0cb69a443e1a4d6558c2ec2a562da60.tar.gz glibc-9949bc63c0cb69a443e1a4d6558c2ec2a562da60.tar.bz2 |
Update.
2001-01-29 Ulrich Drepper <drepper@redhat.com>
* math/libm-test.inc (rint_test): Add a few more tests for round
to even rounding.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | math/libm-test.inc | 10 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2001-01-29 Ulrich Drepper <drepper@redhat.com> + + * math/libm-test.inc (rint_test): Add a few more tests for round + to even rounding. + 2001-01-28 Ulrich Drepper <drepper@redhat.com> * conform/data/pthread.h-data: Correct return type of pthread_exit. diff --git a/math/libm-test.inc b/math/libm-test.inc index b9426e5..76f9022 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1997. @@ -3616,11 +3616,17 @@ rint_test (void) TEST_f_f (rint, plus_infty, plus_infty); TEST_f_f (rint, minus_infty, minus_infty); - /* Default rounding mode is round to nearest. */ + /* Default rounding mode is round to even. */ TEST_f_f (rint, 0.5, 0.0); TEST_f_f (rint, 1.5, 2.0); + TEST_f_f (rint, 2.5, 2.0); + TEST_f_f (rint, 3.5, 4.0); + TEST_f_f (rint, 4.5, 4.0); TEST_f_f (rint, -0.5, -0.0); TEST_f_f (rint, -1.5, -2.0); + TEST_f_f (rint, -2.5, -2.0); + TEST_f_f (rint, -3.5, -4.0); + TEST_f_f (rint, -4.5, -4.0); END (rint); } |