Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index e1cf13ff71a6a53604c0137d50784859f12e1c30..f2894e7a06bf60ce84785dab4b2023c13f34e5b6 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -1124,6 +1124,8 @@ double power_double_double(double x, double y) { |
if (y == 0.5) return sqrt(x + 0.0); // -0 must be converted to +0. |
if (y == -0.5) return 1.0 / sqrt(x + 0.0); |
} |
+#else |
+ if (y == 0) return 1; // Returns 1.0 for exponent 0. |
#endif |
if (isnan(y) || ((x == 1 || x == -1) && isinf(y))) { |
return OS::nan_value(); |