| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index d35219c2dcb8cac1ad1fee2eef3cb38a04031bb8..8ecabfacd146bc1b71ff48247131ced3d20b7c71 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -1123,10 +1123,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 &&
|
|
|