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

Issue 2583053003: Improve saturated_cast performance (Closed)

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

Description

Improve saturated_cast performance Plumb custom bounds through DstRangeRelationToSrcRange to remove duplicate comparisons. Refactor RangeConstraint from an enum to a class containing bools, which can be independently evaluated at compile-time. Re-land minus ODR conflict: https://codereview.chromium.org/2585043002/ TBR=tsepez Committed: https://crrev.com/e3bd1f6de34f95d131264c9a79282fb9b47a5242 Cr-Commit-Position: refs/heads/master@{#439714}

Patch Set 1 #

Patch Set 2 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -83 lines) Patch
M base/numerics/safe_conversions.h View 1 chunk +23 lines, -23 lines 0 comments Download
M base/numerics/safe_conversions_impl.h View 1 8 chunks +96 lines, -60 lines 0 comments Download
M base/numerics/safe_numerics_unittest.cc View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
jschuh
ptal - I made the old names work to avoid whatever ODR conflicts we're hitting.
4 years ago (2016-12-19 22:04:27 UTC) #4
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/2583053003/40001
4 years ago (2016-12-19 22:11:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/10693) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-19 22:15:36 UTC) #12
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/2583053003/60001
4 years ago (2016-12-19 22:19:17 UTC) #14
Tom Sepez
lgtm
4 years ago (2016-12-19 22:42:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/183236) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years ago (2016-12-20 00:15:44 UTC) #17
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/2583053003/60001
4 years ago (2016-12-20 02:04:21 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years ago (2016-12-20 05:12:33 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-20 05:17:39 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e3bd1f6de34f95d131264c9a79282fb9b47a5242
Cr-Commit-Position: refs/heads/master@{#439714}

Powered by Google App Engine
This is Rietveld 408576698