diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-02-15 17:30:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-02-15 17:30:32 +0000 |
commit | 1dc235884e01c29205572c28890166649794ca5c (patch) | |
tree | 64e64785542fff0f963f40b1fb0c145465e75271 /math | |
parent | 1c95408c74ba3f50cd26c045d031f095b2fcf6e8 (diff) | |
download | glibc-1dc235884e01c29205572c28890166649794ca5c.tar.gz glibc-1dc235884e01c29205572c28890166649794ca5c.tar.xz glibc-1dc235884e01c29205572c28890166649794ca5c.zip |
Update.
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.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 12 |
1 files changed, 12 insertions, 0 deletions
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); } |