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

Issue 2472933003: Simplify Checked arithmetic functions in base/numerics (Closed)

Created:
4 years, 1 month ago by jschuh
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify Checked arithmetic functions in base/numerics Starting the process of restructuring to match the GCC and Clang intrinsics. This step is mostly just replacing RangeConstraint with bool. BUG=613003 Committed: https://crrev.com/12d6cf3734f7f1cd64cf52812644a6a49b4da1fe Cr-Commit-Position: refs/heads/master@{#430150}

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : wip #

Patch Set 4 : first pass #

Total comments: 2

Patch Set 5 : nit #

Patch Set 6 : compiler warning fix #

Patch Set 7 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -193 lines) Patch
M base/numerics/safe_math.h View 1 2 3 6 chunks +76 lines, -92 lines 0 comments Download
M base/numerics/safe_math_impl.h View 1 2 3 4 5 6 15 chunks +61 lines, -101 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
jschuh
tsepez@ - For checking the meat of the change. brettw@ - For base owners review.
4 years, 1 month ago (2016-11-04 16:09:55 UTC) #2
jschuh
Sorry, wrong change. Please ignore this WIP.
4 years, 1 month ago (2016-11-04 16:10:35 UTC) #4
jschuh
tsepez@ - Now it's ready for review. This part is mostly just mechanically replacing the ...
4 years, 1 month ago (2016-11-04 20:32:48 UTC) #7
Tom Sepez
https://codereview.chromium.org/2472933003/diff/60001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2472933003/diff/60001/base/numerics/safe_math_impl.h#newcode453 base/numerics/safe_math_impl.h:453: bool is_valid() const { return isfinite(value_); } is this ...
4 years, 1 month ago (2016-11-04 20:46:50 UTC) #8
Tom Sepez
LGTM otherwise.
4 years, 1 month ago (2016-11-04 21:09:44 UTC) #9
jschuh
https://codereview.chromium.org/2472933003/diff/60001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2472933003/diff/60001/base/numerics/safe_math_impl.h#newcode453 base/numerics/safe_math_impl.h:453: bool is_valid() const { return isfinite(value_); } On 2016/11/04 ...
4 years, 1 month ago (2016-11-04 21:41:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2472933003/80001
4 years, 1 month ago (2016-11-04 21:42:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/158446) blimp_linux_dbg on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-04 21:55:30 UTC) #15
brettw
I don't understand the motivation for this change. I read the bug and understood a ...
4 years, 1 month ago (2016-11-04 22:04:53 UTC) #16
jschuh
On 2016/11/04 22:04:53, brettw (ping on IM after 24h) wrote: > I don't understand the ...
4 years, 1 month ago (2016-11-04 23:54:44 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2472933003/100001
4 years, 1 month ago (2016-11-04 23:55:15 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/62348) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-05 00:18:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2472933003/120001
4 years, 1 month ago (2016-11-05 02:25:13 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-05 04:23:46 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 04:27:49 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/12d6cf3734f7f1cd64cf52812644a6a49b4da1fe
Cr-Commit-Position: refs/heads/master@{#430150}

Powered by Google App Engine
This is Rietveld 408576698