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

Side by Side Diff: src/strtod.cc

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/string-stream.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 #include <cmath> 6 #include <cmath>
7 7
8 #include "globals.h" 8 #include "src/globals.h"
9 #include "utils.h" 9 #include "src/utils.h"
10 #include "strtod.h" 10 #include "src/strtod.h"
11 #include "bignum.h" 11 #include "src/bignum.h"
12 #include "cached-powers.h" 12 #include "src/cached-powers.h"
13 #include "double.h" 13 #include "src/double.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 // 2^53 = 9007199254740992. 18 // 2^53 = 9007199254740992.
19 // Any integer with at most 15 decimal digits will hence fit into a double 19 // Any integer with at most 15 decimal digits will hence fit into a double
20 // (which has a 53bit significand) without loss of precision. 20 // (which has a 53bit significand) without loss of precision.
21 static const int kMaxExactDoubleIntegerDecimalDigits = 15; 21 static const int kMaxExactDoubleIntegerDecimalDigits = 15;
22 // 2^64 = 18446744073709551616 > 10^19 22 // 2^64 = 18446744073709551616 > 10^19
23 static const int kMaxUint64DecimalDigits = 19; 23 static const int kMaxUint64DecimalDigits = 19;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 double guess; 412 double guess;
413 if (DoubleStrtod(trimmed, exponent, &guess) || 413 if (DoubleStrtod(trimmed, exponent, &guess) ||
414 DiyFpStrtod(trimmed, exponent, &guess)) { 414 DiyFpStrtod(trimmed, exponent, &guess)) {
415 return guess; 415 return guess;
416 } 416 }
417 return BignumStrtod(trimmed, exponent, guess); 417 return BignumStrtod(trimmed, exponent, guess);
418 } 418 }
419 419
420 } } // namespace v8::internal 420 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/string-stream.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698