Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: src/mips64/simulator-mips64.cc

Issue 798413003: Remove obsolete V8_INFINITY macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Svens smiley. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/simulator-mips64.cc
diff --git a/src/mips64/simulator-mips64.cc b/src/mips64/simulator-mips64.cc
index 9899d47a0e5ec940d99bf1514827f6f57f2187f9..86b1d8ef3ab5b3ede644ba9c601f88a9b9c04c00 100644
--- a/src/mips64/simulator-mips64.cc
+++ b/src/mips64/simulator-mips64.cc
@@ -1204,7 +1204,8 @@ bool Simulator::set_fcsr_round_error(double original, double rounded) {
set_fcsr_bit(kFCSRInexactFlagBit, true);
}
- if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
+ if (rounded < std::numeric_limits<double>::min() &&
+ rounded > -std::numeric_limits<double>::min() && rounded != 0) {
set_fcsr_bit(kFCSRUnderflowFlagBit, true);
ret = true;
}
@@ -1236,7 +1237,8 @@ bool Simulator::set_fcsr_round64_error(double original, double rounded) {
set_fcsr_bit(kFCSRInexactFlagBit, true);
}
- if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) {
+ if (rounded < std::numeric_limits<double>::min() &&
+ rounded > -std::numeric_limits<double>::min() && rounded != 0) {
set_fcsr_bit(kFCSRUnderflowFlagBit, true);
ret = true;
}
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698