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

Issue 353403004: Fixes Android build by using C++ math header instead of C one. (Closed)

Created:
6 years, 5 months ago by zra
Modified:
6 years, 5 months ago
Reviewers:
koda, siva
CC:
reviews_dartlang.org, ricow1, vm-dev_dartlang.org
Visibility:
Public.

Description

Fixes Android build by using C++ math header instead of C one. This change also requires prefacing the math calls with std::, i.e. isinf -> std::isinf. R=asiva@google.com, koda@google.com Committed: https://code.google.com/p/dart/source/detail?r=37839

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M runtime/lib/double.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/platform/c99_support_win.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M runtime/platform/floating_point_win.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/platform/globals.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
A runtime/platform/math.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/simulator_arm.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/simulator_arm64.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/simulator_mips.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M tools/gyp/configurations_android.gypi View 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
zra
6 years, 5 months ago (2014-06-30 20:43:48 UTC) #1
koda
lgtm, thanks for doing this! https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc File runtime/vm/simulator_arm64.cc (right): https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc#newcode2446 runtime/vm/simulator_arm64.cc:2446: if (std::isinf(a) || (fabs(a) ...
6 years, 5 months ago (2014-06-30 20:50:40 UTC) #2
siva
lgtm https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc File runtime/vm/simulator_arm64.cc (right): https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc#newcode2446 runtime/vm/simulator_arm64.cc:2446: if (std::isinf(a) || (fabs(a) >= exp2f(126))) return 0.0; ...
6 years, 5 months ago (2014-06-30 20:59:34 UTC) #3
zra
https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc File runtime/vm/simulator_arm64.cc (right): https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc#newcode2446 runtime/vm/simulator_arm64.cc:2446: if (std::isinf(a) || (fabs(a) >= exp2f(126))) return 0.0; On ...
6 years, 5 months ago (2014-06-30 20:59:45 UTC) #4
zra
Put the #define's in platform/math.h to include from platform/globals.h. https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc File runtime/vm/simulator_arm64.cc (right): https://codereview.chromium.org/353403004/diff/40001/runtime/vm/simulator_arm64.cc#newcode2446 runtime/vm/simulator_arm64.cc:2446: ...
6 years, 5 months ago (2014-06-30 22:14:34 UTC) #5
zra
6 years, 5 months ago (2014-06-30 22:15:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #8 manually as r37839 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698