mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-21 14:53:53 +03:00
PowerPC: fix hypot/hypof FP exceptions
This patch fixes hypot/hypotf spurious floating-point exceptions generate by internal operations.
This commit is contained in:
@@ -9159,6 +9159,7 @@ hypot_test (void)
|
||||
TEST_ff_f (hypot, 0.75L, 1.25L, 1.45773797371132511771853821938639577L);
|
||||
|
||||
TEST_ff_f (hypot, 1.0L, 0x1p-61L, 1.0L);
|
||||
TEST_ff_f (hypot, 0x1p+0L, 0x1.fp-129L, 0x1p+0L);
|
||||
#if defined TEST_LDOUBLE && LDBL_MANT_DIG >= 106
|
||||
TEST_ff_f (hypot, 0x1.23456789abcdef0123456789ab8p-500L, 0x1.23456789abcdef0123456789ab8p-500L, 4.9155782399407039128612180934736799735113e-151L);
|
||||
#endif
|
||||
@@ -9170,6 +9171,7 @@ hypot_test (void)
|
||||
|
||||
#if !defined TEST_FLOAT && !(defined TEST_DOUBLE && defined TEST_INLINE)
|
||||
TEST_ff_f (hypot, 0x3p1021L, 0x4p1021L, 0x5p1021L);
|
||||
TEST_ff_f (hypot, 0x1p+0L, 0x0.3ep-1022L, 0x1p+0L);
|
||||
#endif
|
||||
|
||||
#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 && !defined TEST_INLINE
|
||||
|
Reference in New Issue
Block a user