diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-07 23:35:27 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-07 23:35:27 +0000 |
commit | 1cfe344fe23d6dbd3d2cdf593e1a260e4349d48c (patch) | |
tree | 8122c4552292305a54f3be3887fbac49ba651db6 /numeric.c | |
parent | 60c9368f36d50d11addeaca67cbdb09c3445171a (diff) | |
download | perl-1cfe344fe23d6dbd3d2cdf593e1a260e4349d48c.tar.gz |
Ignore SIGFPE everywhere.
p4raw-id: //depot/perl@11608
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -572,24 +572,12 @@ S_mulexp10(NV value, I32 exponent) negative = 1; exponent = -exponent; } -#ifdef __VAX /* avoid %SYSTEM-F-FLTOVF_F sans VAXC$ESTABLISH */ -# if defined(__DECC_VER) && __DECC_VER <= 50390006 - /* __F_FLT_MAX_10_EXP - 5 == 33 */ - if (!negative && - (log10(value) + exponent) >= (__F_FLT_MAX_10_EXP - 5)) - return NV_MAX; -# endif -#endif -#if defined(__alpha) && defined(__unix__) - if (!negative && - (log10(value) + exponent) >= (DBL_MAX_10_EXP)) - return NV_INF; -#endif for (bit = 1; exponent; bit <<= 1) { if (exponent & bit) { exponent ^= bit; result *= power; } + /* Floating point exceptions are supposed to be turned off. */ power *= power; } return negative ? value / result : value * result; |