summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-07 23:35:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-07 23:35:27 +0000
commit7014c40783484eed55bf735c99b9ec618f0b36dd (patch)
tree8122c4552292305a54f3be3887fbac49ba651db6 /numeric.c
parent5a7beb56c5db2ec34282658c69d8ac3da98cdd0e (diff)
downloadperl-7014c40783484eed55bf735c99b9ec618f0b36dd.tar.gz
Ignore SIGFPE everywhere.
p4raw-id: //depot/perl@11608
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/numeric.c b/numeric.c
index 8d94975f1d..68c16712e5 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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;