Message-Id: <
200206091352.g59Dq7Z28403@crypt.compulink.co.uk>
p4raw-id: //depot/perl@17139
*
* [1] Trying to establish a condition handler to trap floating point
* exceptions is not a good idea. */
-#if defined(VMS) && !defined(__IEEE_FP) && defined(NV_MAX_10_EXP)
+ /* UNICOS fp is similarly non-IEEE. */
+#if ((defined(VMS) && !defined(__IEEE_FP)) || defined(_UNICOS)) && defined(NV_MAX_10_EXP)
if ((log10(value) + exponent) >= (NV_MAX_10_EXP))
return negative ? 0.0 : NV_MAX;
#endif