| Index: src/arm/simulator-arm.cc
|
| diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc
|
| index 131a1bbdd8e2858dcc7378c6d56bc58bd9f5027d..6e7c0e6897ebe550442326d1d4c50f0fd8941640 100644
|
| --- a/src/arm/simulator-arm.cc
|
| +++ b/src/arm/simulator-arm.cc
|
| @@ -25,9 +25,10 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +#include <stdarg.h>
|
| #include <stdlib.h>
|
| #include <cmath>
|
| -#include <cstdarg>
|
| +
|
| #include "v8.h"
|
|
|
| #if V8_TARGET_ARCH_ARM
|
| @@ -2909,7 +2910,7 @@ void Simulator::DecodeTypeVFP(Instruction* instr) {
|
| } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) {
|
| // vabs
|
| double dm_value = get_double_from_d_register(vm);
|
| - double dd_value = fabs(dm_value);
|
| + double dd_value = std::fabs(dm_value);
|
| dd_value = canonicalizeNaN(dd_value);
|
| set_d_register_from_double(vd, dd_value);
|
| } else if ((instr->Opc2Value() == 0x1) && (instr->Opc3Value() == 0x1)) {
|
| @@ -2938,7 +2939,7 @@ void Simulator::DecodeTypeVFP(Instruction* instr) {
|
| } else if (((instr->Opc2Value() == 0x1)) && (instr->Opc3Value() == 0x3)) {
|
| // vsqrt
|
| double dm_value = get_double_from_d_register(vm);
|
| - double dd_value = sqrt(dm_value);
|
| + double dd_value = std::sqrt(dm_value);
|
| dd_value = canonicalizeNaN(dd_value);
|
| set_d_register_from_double(vd, dd_value);
|
| } else if (instr->Opc3Value() == 0x0) {
|
| @@ -3274,8 +3275,8 @@ void Simulator::DecodeVCVTBetweenFloatingPointAndInteger(Instruction* instr) {
|
| inv_op_vfp_flag_ = get_inv_op_vfp_flag(mode, val, unsigned_integer);
|
|
|
| double abs_diff =
|
| - unsigned_integer ? fabs(val - static_cast<uint32_t>(temp))
|
| - : fabs(val - temp);
|
| + unsigned_integer ? std::fabs(val - static_cast<uint32_t>(temp))
|
| + : std::fabs(val - temp);
|
|
|
| inexact_vfp_flag_ = (abs_diff != 0);
|
|
|
|
|