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

Unified Diff: Source/wtf/dtoa/cached-powers.cc

Issue 20652002: Fix trailing whitespace in scripts and misc. files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't change literal diff. Created 7 years, 5 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 | « Source/wtf/dtoa/bignum-dtoa.cc ('k') | Source/wtf/dtoa/diy-fp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/dtoa/cached-powers.cc
diff --git a/Source/wtf/dtoa/cached-powers.cc b/Source/wtf/dtoa/cached-powers.cc
index 3609ba2b227d8ed8bf824448354d1062f43d0607..22fda4b913c83d0913e600dc570d05bcd67552a2 100644
--- a/Source/wtf/dtoa/cached-powers.cc
+++ b/Source/wtf/dtoa/cached-powers.cc
@@ -38,22 +38,22 @@
namespace WTF {
namespace double_conversion {
-
+
struct CachedPower {
uint64_t significand;
int16_t binary_exponent;
int16_t decimal_exponent;
};
-
+
static int kCachedPowersLength = 1;
static int kCachedPowersOffset = 1;
static const double kD_1_LOG2_10 = 0.30102999566398114; // 1 / lg(10)
static CachedPower* kCachedPowers = 0;
-
+
int PowersOfTenCache::kDecimalExponentDistance = 1;
int PowersOfTenCache::kMinDecimalExponent = 1;
int PowersOfTenCache::kMaxDecimalExponent = 1;
-
+
void initialize() {
if (kCachedPowers)
return;
@@ -153,7 +153,7 @@ namespace double_conversion {
PowersOfTenCache::kMinDecimalExponent = kCachedPowers[0].decimal_exponent;
PowersOfTenCache::kMaxDecimalExponent = kCachedPowers[kCachedPowersLength - 1].decimal_exponent;
}
-
+
void PowersOfTenCache::GetCachedPowerForBinaryExponentRange(
int min_exponent,
int max_exponent,
@@ -172,8 +172,8 @@ namespace double_conversion {
*decimal_exponent = cached_power.decimal_exponent;
*power = DiyFp(cached_power.significand, cached_power.binary_exponent);
}
-
-
+
+
void PowersOfTenCache::GetCachedPowerForDecimalExponent(int requested_exponent,
DiyFp* power,
int* found_exponent) {
@@ -187,7 +187,7 @@ namespace double_conversion {
ASSERT(*found_exponent <= requested_exponent);
ASSERT(requested_exponent < *found_exponent + kDecimalExponentDistance);
}
-
+
} // namespace double_conversion
} // namespace WTF
« no previous file with comments | « Source/wtf/dtoa/bignum-dtoa.cc ('k') | Source/wtf/dtoa/diy-fp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698