diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | math/libm-test.inc | 12 | ||||
-rw-r--r-- | sysdeps/i386/fpu/libm-test-ulps | 2 |
3 files changed, 23 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2000-02-15 Andreas Jaeger <aj@suse.de> + + * sysdeps/i386/fpu/libm-test-ulps: Add one value for AMD K7. + +2000-02-15 Andreas Jaeger <aj@suse.de> + + * math/libm-test.inc (nearbyint_test): Add some tests. + (rint_test): Likewise. + 2000-02-14 Ulrich Drepper <drepper@redhat.com> * locale/programs/repertoire.c (repertoire_new_char): NUL diff --git a/math/libm-test.inc b/math/libm-test.inc index 99e2b5ad6e..c3af9f9009 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -3101,6 +3101,12 @@ nearbyint_test (void) TEST_f_f (nearbyint, minus_infty, minus_infty); TEST_f_f (nearbyint, nan_value, nan_value); + /* Default rounding mode is round to nearest. */ + TEST_f_f (nearbyint, 0.5, 0.0); + TEST_f_f (nearbyint, 1.5, 2.0); + TEST_f_f (nearbyint, -0.5, minus_zero); + TEST_f_f (nearbyint, -1.5, -2.0); + END (nearbyint); } @@ -3384,6 +3390,12 @@ 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. */ + TEST_f_f (rint, 0.5, 0.0); + TEST_f_f (rint, 1.5, 2.0); + TEST_f_f (rint, -0.5, -0.0); + TEST_f_f (rint, -1.5, -2.0); + END (rint); } diff --git a/sysdeps/i386/fpu/libm-test-ulps b/sysdeps/i386/fpu/libm-test-ulps index 78e92203e2..83bdcbf1a1 100644 --- a/sysdeps/i386/fpu/libm-test-ulps +++ b/sysdeps/i386/fpu/libm-test-ulps @@ -170,6 +170,8 @@ ildouble: 2 ldouble: 2 Test "Imaginary part of: catanh (-2 - 3 i) == -0.1469466662255297520 - 1.3389725222944935611 i": Test "Real part of: catanh (0.7 + 1.2 i) == 0.2600749516525135959 + 0.9702403077950989849 i": +double: 1 +idouble: 1 ildouble: 66 ldouble: 66 Test "Imaginary part of: catanh (0.7 + 1.2 i) == 0.2600749516525135959 + 0.9702403077950989849 i": |