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

Issue 2510793004: Performance optimizations for Checked(Add|Sub|Mul|Div) (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

Performance optimizations for Checked(Add|Sub|Mul|Div) This skips the more complicated math functions if we can can perform the operations on a wider intermediate type. R=tsepez@chromium.org Committed: https://crrev.com/fc21258997b7cf8ca1fcf5e8d66af256815d5611 Cr-Commit-Position: refs/heads/master@{#432768}

Patch Set 1 #

Patch Set 2 : simplify #

Patch Set 3 : nit #

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

Messages

Total messages: 19 (11 generated)
Tom Sepez
https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math_impl.h#newcode284 base/numerics/safe_math_impl.h:284: is_valid &= CheckedAddImpl(static_cast<Promotion>(x), Do we maybe perform an operation ...
4 years, 1 month ago (2016-11-16 21:16:08 UTC) #3
jschuh
https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math_impl.h File base/numerics/safe_math_impl.h (right): https://codereview.chromium.org/2510793004/diff/50001/base/numerics/safe_math_impl.h#newcode284 base/numerics/safe_math_impl.h:284: is_valid &= CheckedAddImpl(static_cast<Promotion>(x), On 2016/11/16 21:16:08, Tom Sepez wrote: ...
4 years, 1 month ago (2016-11-16 21:22:28 UTC) #4
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-17 00:24:40 UTC) #9
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/2510793004/50001
4 years, 1 month ago (2016-11-17 00:38:07 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
4 years, 1 month ago (2016-11-17 02:40:42 UTC) #13
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/2510793004/50001
4 years, 1 month ago (2016-11-17 03:57:47 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:50001)
4 years, 1 month ago (2016-11-17 05:40:59 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 05:44:27 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc21258997b7cf8ca1fcf5e8d66af256815d5611
Cr-Commit-Position: refs/heads/master@{#432768}

Powered by Google App Engine
This is Rietveld 408576698