diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-12-07 03:25:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-12-07 03:25:24 +0000 |
commit | 64b02fd2f5fd5d2e2b7187b5e982fa6b59587500 (patch) | |
tree | 8b833557f08e0d9088bfbeb20af3389680cdc87f /math/libm-test.inc | |
parent | 57d20ee7f27850f2c14e7eeb1e64807e6431d469 (diff) | |
download | glibc-64b02fd2f5fd5d2e2b7187b5e982fa6b59587500.tar.gz glibc-64b02fd2f5fd5d2e2b7187b5e982fa6b59587500.tar.xz glibc-64b02fd2f5fd5d2e2b7187b5e982fa6b59587500.zip |
Update.
2003-12-06 Ulrich Drepper <drepper@redhat.com> * math/Makefile (tests): Add bug-nextafter. * math/bug-nextafter.c: New file. * sysdeps/generic/s_nextafter.c: Construct overflow value correctly. * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise. * math/libm-test.inc (nextafter_test): Add test for overflow after +/-FLT_MAX etc.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r-- | math/libm-test.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index 69752e00d5..38386c1ed5 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -3437,6 +3437,11 @@ nextafter_test (void) TEST_ff_f (nextafter, 1.1L, nan_value, nan_value); TEST_ff_f (nextafter, nan_value, nan_value, nan_value); + FLOAT fltmax = CHOOSE (LDBL_MAX, DBL_MAX, FLT_MAX, + LDBL_MAX, DBL_MAX, FLT_MAX); + TEST_ff_f (nextafter, fltmax, plus_infty, plus_infty); + TEST_ff_f (nextafter, -fltmax, minus_infty, minus_infty); + #ifdef TEST_LDOUBLE // XXX Enable once gcc is fixed. //TEST_ff_f (nextafter, 0x0.00000040000000000000p-16385L, -0.1L, 0x0.0000003ffffffff00000p-16385L); |