This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlexperiment.pod: use consistent style for Perl versions
[perl5.git] / pp.c
diff --git a/pp.c b/pp.c
index 6e9995a..b084d49 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -1394,7 +1394,17 @@ PP(pp_multiply)
       NV right = SvNV_nomg(svr);
       NV left  = SvNV_nomg(svl);
       (void)POPs;
+#if defined(__sgi) && defined(USE_LONG_DOUBLE) && LONG_DOUBLEKIND == LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN && NVSIZE == 16
+      {
+          NV result = left * right;
+          if (Perl_isinf(result)) {
+              Zero((U8*)&result + 8, 8, U8);
+          }
+          SETn( result );
+      }
+#else
       SETn( left * right );
+#endif
       RETURN;
     }
 }