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

Issue 11411188: Fix floating point issues on Windows. (Closed)

Created:
8 years ago by aam-me
Modified:
8 years ago
CC:
reviews_dartlang.org, ahe, Ivan Posva
Visibility:
Public.

Description

Fix floating point issues on Windows. BUG=dartbug.com/5407 TEST= Committed: https://code.google.com/p/dart/source/detail?r=15546

Patch Set 1 #

Patch Set 2 : Got rid of posix suffix. Fixed atan2_ieee function name. #

Patch Set 3 : Marked exp_A01_t01 as failing test on Linux and Mac systems only. #

Total comments: 12

Patch Set 4 : Moved round() back to c99_support_win. Cleaned up the code, added comments. #

Total comments: 13

Patch Set 5 : Moved round() back to static inline function. Redid the changes lost from previous patch. #

Total comments: 8

Patch Set 6 : Renamed module to fmod_ieee, to follow atan2/atan2_ieee convention. Cosmetic changes. #

Total comments: 2

Patch Set 7 : ndx_x, ndx_y -> index_x, index_y. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -28 lines) Patch
M runtime/lib/double.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/lib/math.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/platform/c99_support_win.h View 1 2 3 4 1 chunk +12 lines, -3 lines 0 comments Download
A runtime/platform/floating_point.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A + runtime/platform/floating_point_win.h View 1 2 3 4 5 1 chunk +5 lines, -9 lines 0 comments Download
A runtime/platform/floating_point_win.cc View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
M runtime/platform/globals.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/platform/platform_headers.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/platform/platform_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
aam-me
Hi, My original intent was to fix dart2js co19/LibTest/core/double/operator_remainder_A01_t04 test that was failing in my ...
8 years ago (2012-11-27 04:00:40 UTC) #1
ahe
8 years ago (2012-11-27 07:51:43 UTC) #2
Mads Ager (google)
Thanks for looking into this Alexander! https://chromiumcodereview.appspot.com/11411188/diff/7001/runtime/platform/c99_support_win.h File runtime/platform/c99_support_win.h (left): https://chromiumcodereview.appspot.com/11411188/diff/7001/runtime/platform/c99_support_win.h#oldcode50 runtime/platform/c99_support_win.h:50: static inline double ...
8 years ago (2012-11-27 08:43:23 UTC) #3
aam-me
Thank you, Mads, for the review! PTAL https://chromiumcodereview.appspot.com/11411188/diff/7001/runtime/platform/c99_support_win.h File runtime/platform/c99_support_win.h (left): https://chromiumcodereview.appspot.com/11411188/diff/7001/runtime/platform/c99_support_win.h#oldcode50 runtime/platform/c99_support_win.h:50: static inline ...
8 years ago (2012-11-28 00:45:34 UTC) #4
Mads Ager (google)
Getting there. Thanks for iterating on this! https://chromiumcodereview.appspot.com/11411188/diff/10001/runtime/platform/c99_support_win.cc File runtime/platform/c99_support_win.cc (right): https://chromiumcodereview.appspot.com/11411188/diff/10001/runtime/platform/c99_support_win.cc#newcode1 runtime/platform/c99_support_win.cc:1: // Copyright ...
8 years ago (2012-11-28 09:26:26 UTC) #5
aam-me
Sorry about that, Mads! Yes, somehow some changes got lost. I got some kind of ...
8 years ago (2012-11-28 12:14:36 UTC) #6
Mads Ager (google)
Thanks! Last round: a couple of style nit picks and we are ready to go! ...
8 years ago (2012-11-29 09:36:36 UTC) #7
aam-me
Thank you, Mads, for the comments. PTAL when you have a chance! https://chromiumcodereview.appspot.com/11411188/diff/6002/runtime/platform/floating_point.h File runtime/platform/floating_point.h ...
8 years ago (2012-11-29 12:39:53 UTC) #8
Mads Ager (google)
LGTM, thanks Alexander. Let's get this landed! :) https://chromiumcodereview.appspot.com/11411188/diff/3014/runtime/platform/floating_point_win.cc File runtime/platform/floating_point_win.cc (right): https://chromiumcodereview.appspot.com/11411188/diff/3014/runtime/platform/floating_point_win.cc#newcode35 runtime/platform/floating_point_win.cc:35: // ...
8 years ago (2012-11-29 13:25:13 UTC) #9
aam-me
8 years ago (2012-11-30 03:35:24 UTC) #10
Message was sent while issue was closed.
Thank you, Mads, for the review!
The fix landed.

https://codereview.chromium.org/11411188/diff/3014/runtime/platform/floating_...
File runtime/platform/floating_point_win.cc (right):

https://codereview.chromium.org/11411188/diff/3014/runtime/platform/floating_...
runtime/platform/floating_point_win.cc:35: // at (+/-1, +/-1). ndx_x is 0, when
x is +infinty, 1 when x is -infinty.
On 2012/11/29 13:25:14, Mads Ager wrote:
> ndx_x and ndx_y -> index_x and index_y.

Done.

Powered by Google App Engine
This is Rietveld 408576698