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

Issue 2554803002: Cleanup some undefined floating point behavior in base/numerics (Closed)

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

Description

Cleanup some undefined floating point behavior in base/numerics BUG=670885 Committed: https://crrev.com/7b594481a5452749f3abb50a5d82fd3fcf1c205c Cr-Commit-Position: refs/heads/master@{#436746}

Patch Set 1 #

Total comments: 9

Patch Set 2 : fixed #

Total comments: 4

Patch Set 3 : nits #

Patch Set 4 : compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -18 lines) Patch
M base/numerics/safe_conversions.h View 3 chunks +27 lines, -10 lines 0 comments Download
M base/numerics/safe_math_impl.h View 1 2 3 5 chunks +32 lines, -8 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
jschuh
ptal
4 years ago (2016-12-06 13:41:29 UTC) #7
Nico
Thanks! https://codereview.chromium.org/2554803002/diff/20001/base/numerics/safe_conversions.h File base/numerics/safe_conversions.h (right): https://codereview.chromium.org/2554803002/diff/20001/base/numerics/safe_conversions.h#newcode139 base/numerics/safe_conversions.h:139: ? -std::numeric_limits<Dst>::infinity() I'm assuming you're static_assert()ing somewhere that ...
4 years ago (2016-12-06 14:03:38 UTC) #8
jschuh
Somehow I posted my WIP, but not the complete patch. I'll figure out what's going ...
4 years ago (2016-12-06 15:07:55 UTC) #9
jschuh
PTAL again. I have no idea how I messed up posting the original CL, but ...
4 years ago (2016-12-06 17:11:13 UTC) #10
Nico
lgtm, thanks! https://codereview.chromium.org/2554803002/diff/40001/base/numerics/safe_conversions.h File base/numerics/safe_conversions.h (right): https://codereview.chromium.org/2554803002/diff/40001/base/numerics/safe_conversions.h#newcode134 base/numerics/safe_conversions.h:134: constexpr Dst saturated_cast_impl(const Src value, So this ...
4 years ago (2016-12-06 17:15:50 UTC) #11
jschuh
https://codereview.chromium.org/2554803002/diff/40001/base/numerics/safe_conversions.h File base/numerics/safe_conversions.h (right): https://codereview.chromium.org/2554803002/diff/40001/base/numerics/safe_conversions.h#newcode134 base/numerics/safe_conversions.h:134: constexpr Dst saturated_cast_impl(const Src value, On 2016/12/06 17:15:50, Nico ...
4 years ago (2016-12-06 17:34:00 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/2554803002/60001
4 years ago (2016-12-06 17:39:34 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/273020) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-06 17:50:08 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/2554803002/80001
4 years ago (2016-12-06 18:00:24 UTC) #20
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/274452) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-06 20:06:00 UTC) #22
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/2554803002/80001
4 years ago (2016-12-06 20:11:10 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-12-06 21:46:38 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-06 21:50:09 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7b594481a5452749f3abb50a5d82fd3fcf1c205c
Cr-Commit-Position: refs/heads/master@{#436746}

Powered by Google App Engine
This is Rietveld 408576698