Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 2a217c3404f07a120a1099dfa4fd76cfe2baea43..fa29a67973d6aa92739106dac28cc7b11affd1f5 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -1615,10 +1615,10 @@ void LCodeGen::DoMathFloorOfDiv(LMathFloorOfDiv* instr) { |
double multiplier_f = |
static_cast<double>(static_cast<uint64_t>(1) << shift) / divisor_abs; |
int64_t multiplier; |
- if (multiplier_f - floor(multiplier_f) < 0.5) { |
- multiplier = static_cast<int64_t>(floor(multiplier_f)); |
+ if (multiplier_f - std::floor(multiplier_f) < 0.5) { |
+ multiplier = static_cast<int64_t>(std::floor(multiplier_f)); |
} else { |
- multiplier = static_cast<int64_t>(floor(multiplier_f)) + 1; |
+ multiplier = static_cast<int64_t>(std::floor(multiplier_f)) + 1; |
} |
// The multiplier is a uint32. |
ASSERT(multiplier > 0 && |