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

Issue 3760013: Strtod fast-case that uses DiyFps and cached powers of ten. (Closed)

Created:
10 years, 2 months ago by Florian Loitsch
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Strtod fast-case that uses DiyFps and cached powers of ten. Committed: http://code.google.com/p/v8/source/detail?r=5677

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -45 lines) Patch
M src/cached-powers.h View 1 chunk +26 lines, -4 lines 0 comments Download
M src/cached-powers.cc View 2 chunks +41 lines, -16 lines 0 comments Download
M src/double.h View 4 chunks +49 lines, -8 lines 0 comments Download
M src/fast-dtoa.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M src/strtod.cc View 1 9 chunks +193 lines, -11 lines 0 comments Download
M test/cctest/test-strtod.cc View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Loitsch
10 years, 2 months ago (2010-10-19 16:50:17 UTC) #1
William Hesse
LGTM. http://codereview.chromium.org/3760013/diff/1/6 File src/strtod.cc (right): http://codereview.chromium.org/3760013/diff/1/6#newcode146 src/strtod.cc:146: // In almost all cases the number of ...
10 years, 2 months ago (2010-10-20 14:52:19 UTC) #2
Florian Loitsch
10 years, 2 months ago (2010-10-20 15:12:37 UTC) #3
http://codereview.chromium.org/3760013/diff/1/6
File src/strtod.cc (right):

http://codereview.chromium.org/3760013/diff/1/6#newcode146
src/strtod.cc:146: // In almost all cases the number of read digits is maximal.
On 2010/10/20 14:52:19, William Hesse wrote:
> What does that mean?  What is maximal?

Updated comment.
It means: it reads as many digits as fit into a uint64.
However there are some corner cases where it would have been possible to read
one additional digit.

http://codereview.chromium.org/3760013/diff/1/6#newcode276
src/strtod.cc:276: int error = (remaining_decimals == 0? 0: kDenominator / 2);
On 2010/10/20 14:52:19, William Hesse wrote:
> Put spaces on both sides of the ? and :.

Done.

Powered by Google App Engine
This is Rietveld 408576698