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

Issue 2578613002: Support saturation overrides in saturated_cast (Closed)

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

Description

Support saturation overrides in saturated_cast This is a requirement for adding a full saturated type implementation. BUG=672489 NOTRY=true Committed: https://crrev.com/186c7dbbea5eef852bf0c4277d1da16f56f9156e Cr-Commit-Position: refs/heads/master@{#439061}

Patch Set 1 #

Patch Set 2 : tests and cleanup #

Patch Set 3 : plumbed comparisons through #

Patch Set 4 : wip: plumbed with bounds #

Patch Set 5 : plumbing done #

Patch Set 6 : compile fix #

Total comments: 7

Patch Set 7 : comments and test #

Patch Set 8 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -89 lines) Patch
M base/numerics/safe_conversions.h View 1 2 3 4 5 6 3 chunks +48 lines, -63 lines 0 comments Download
M base/numerics/safe_conversions_impl.h View 1 2 3 4 5 2 chunks +63 lines, -17 lines 0 comments Download
M base/numerics/safe_numerics_unittest.cc View 1 2 3 4 5 6 7 3 chunks +47 lines, -9 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
jschuh
brucedawson@ - This is basically just a change to an implementation detail, but I did ...
4 years ago (2016-12-14 17:31:35 UTC) #3
jschuh
Actually, eae@, how about I give you the nice holiday gift of a code review? ...
4 years ago (2016-12-15 21:02:27 UTC) #11
eae
On 2016/12/15 21:02:27, jschuh wrote: > Actually, eae@, how about I give you the nice ...
4 years ago (2016-12-15 22:59:17 UTC) #14
eae
LGTM! https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h File base/numerics/safe_conversions.h (right): https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h#newcode109 base/numerics/safe_conversions.h:109: // saturated_cast<> is analogous to static_cast<> for numeric ...
4 years ago (2016-12-15 23:07:47 UTC) #15
jschuh
https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h File base/numerics/safe_conversions.h (right): https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h#newcode109 base/numerics/safe_conversions.h:109: // saturated_cast<> is analogous to static_cast<> for numeric types, ...
4 years ago (2016-12-16 00:31:00 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/2578613002/180001
4 years ago (2016-12-16 00:33:37 UTC) #20
eae
On 2016/12/16 00:31:00, jschuh wrote: > https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h > File base/numerics/safe_conversions.h (right): > > https://codereview.chromium.org/2578613002/diff/140001/base/numerics/safe_conversions.h#newcode109 > ...
4 years ago (2016-12-16 01:09:21 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/334279) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-16 03:23:58 UTC) #23
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/2578613002/180001
4 years ago (2016-12-16 03:36:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/357819)
4 years ago (2016-12-16 07:22:15 UTC) #27
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/2578613002/180001
4 years ago (2016-12-16 07:28:29 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years ago (2016-12-16 07:33:00 UTC) #33
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/186c7dbbea5eef852bf0c4277d1da16f56f9156e Cr-Commit-Position: refs/heads/master@{#439061}
4 years ago (2016-12-16 07:34:36 UTC) #35
agrieve
4 years ago (2016-12-16 18:16:42 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:180001) has been created in
https://codereview.chromium.org/2582063002/ by agrieve@chromium.org.

The reason for reverting is: Suspect breaking base_unittests.
https://uberchromegw.corp.google.com/i/chromium.linux/builders/Android%20Test....

Powered by Google App Engine
This is Rietveld 408576698