Revision: 25140
Author: [email protected]
Date: Wed Nov 5 10:41:43 2014 UTC
Log: Don't use C++11's std::trunc and std::round, use the traditional
C functions.
[email protected]
Review URL: https://codereview.chromium.org/703893002
https://code.google.com/p/v8/source/detail?r=25140
Modified:
/branches/bleeding_edge/src/arm/simulator-arm.cc
=======================================
--- /branches/bleeding_edge/src/arm/simulator-arm.cc Thu Oct 30 11:00:47
2014 UTC
+++ /branches/bleeding_edge/src/arm/simulator-arm.cc Wed Nov 5 10:41:43
2014 UTC
@@ -2960,7 +2960,7 @@
} else if (((instr->Opc2Value() == 0x6)) && (instr->Opc3Value() ==
0x3)) {
// vrintz - truncate
double dm_value = get_double_from_d_register(vm);
- double dd_value = std::trunc(dm_value);
+ double dd_value = trunc(dm_value);
dd_value = canonicalizeNaN(dd_value);
set_d_register_from_double(vd, dd_value);
} else {
@@ -3624,7 +3624,7 @@
int rounding_mode = instr->Bits(17, 16);
switch (rounding_mode) {
case 0x0: // vrinta - round with ties to away from zero
- dd_value = std::round(dm_value);
+ dd_value = round(dm_value);
break;
case 0x1: { // vrintn - round with ties to even
dd_value = std::floor(dm_value);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.