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 | 7014c40783484eed55bf735c99b9ec618f0b36dd (patch) | |
tree | 8122c4552292305a54f3be3887fbac49ba651db6 /numeric.c | |
parent | 5a7beb56c5db2ec34282658c69d8ac3da98cdd0e (diff) | |
download | perl-7014c40783484eed55bf735c99b9ec618f0b36dd.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; |