mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
Add tests for hypot overflow/underflow.
This commit is contained in:
parent
7c10fd3515
commit
aa4a2ae1db
@ -1,3 +1,8 @@
|
|||||||
|
2012-03-14 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
[BZ #13840]
|
||||||
|
* math/libm-test.inc (hypot_test): Add more tests.
|
||||||
|
|
||||||
2012-03-13 David S. Miller <davem@davemloft.net>
|
2012-03-13 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
[BZ #13840]
|
[BZ #13840]
|
||||||
|
@ -3557,6 +3557,19 @@ hypot_test (void)
|
|||||||
|
|
||||||
TEST_ff_f (hypot, 0.75L, 1.25L, 1.45773797371132511771853821938639577L);
|
TEST_ff_f (hypot, 0.75L, 1.25L, 1.45773797371132511771853821938639577L);
|
||||||
|
|
||||||
|
#if !(defined TEST_FLOAT && defined TEST_INLINE)
|
||||||
|
TEST_ff_f (hypot, 0x3p125L, 0x4p125L, 0x5p125L);
|
||||||
|
TEST_ff_f (hypot, 0x1.234566p-126L, 0x1.234566p-126L, 1.891441686191081936598531534017449451173e-38L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef TEST_FLOAT
|
||||||
|
TEST_ff_f (hypot, 0x3p1021L, 0x4p1021L, 0x5p1021L);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 && !defined TEST_INLINE
|
||||||
|
TEST_ff_f (hypot, 0x3p16381L, 0x4p16381L, 0x5p16381L);
|
||||||
|
#endif
|
||||||
|
|
||||||
END (hypot);
|
END (hypot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user