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

Issue 2564493003: Cleanup sign checking in safe math code (Closed)

Created:
4 years ago by jschuh
Modified:
4 years ago
Reviewers:
scottmg
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup sign checking in safe math code Signed comparison is less code and matches the optimal compiler heuristics better than masking. TBR=scottmg NOTRY=true Committed: https://crrev.com/99bfa52d9dea53984ae4da5ee44eff0002928453 Cr-Commit-Position: refs/heads/master@{#437342}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -7 lines) Patch
M base/numerics/safe_conversions_impl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M base/numerics/safe_math_impl.h View 1 chunk +2 lines, -2 lines 1 comment Download

Messages

Total messages: 18 (11 generated)
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/2564493003/1
4 years ago (2016-12-08 16:54:40 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/276162)
4 years ago (2016-12-08 20:57:38 UTC) #8
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/2564493003/1
4 years ago (2016-12-08 21:03:50 UTC) #11
scottmg
https://codereview.chromium.org/2564493003/diff/1/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2564493003/diff/1/base/numerics/safe_math_impl.h#newcode49 base/numerics/safe_math_impl.h:49: // Cast to unsigned since right shift on signed ...
4 years ago (2016-12-08 21:05:03 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-08 21:12:31 UTC) #15
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/99bfa52d9dea53984ae4da5ee44eff0002928453 Cr-Commit-Position: refs/heads/master@{#437342}
4 years ago (2016-12-08 21:14:48 UTC) #17
jschuh
4 years ago (2016-12-09 17:39:40 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2563003003/ by jschuh@chromium.org.

The reason for reverting is: This change was not a performance improvement..

Powered by Google App Engine
This is Rietveld 408576698