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

Unified Diff: src/conversions-inl.h

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Same as the previous CL, but with an addition to cctest/test-log.cc Created 6 years, 11 months 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/conversions.cc ('k') | src/cpu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/conversions-inl.h
diff --git a/src/conversions-inl.h b/src/conversions-inl.h
index 7ba19ba0f1d571657f51f68865dc24b700fc8ef3..3cb7ef29924ae1e7c058c65ef4a8fb5f3515d14b 100644
--- a/src/conversions-inl.h
+++ b/src/conversions-inl.h
@@ -88,7 +88,7 @@ inline unsigned int FastD2UI(double x) {
inline double DoubleToInteger(double x) {
if (std::isnan(x)) return 0;
if (!std::isfinite(x) || x == 0) return x;
- return (x >= 0) ? floor(x) : ceil(x);
+ return (x >= 0) ? std::floor(x) : std::ceil(x);
}
@@ -233,7 +233,7 @@ double InternalStringToIntDouble(UnicodeCache* unicode_cache,
}
ASSERT(number != 0);
- return ldexp(static_cast<double>(negative ? -number : number), exponent);
+ return std::ldexp(static_cast<double>(negative ? -number : number), exponent);
}
« no previous file with comments | « src/conversions.cc ('k') | src/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698