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

Issue 2582323003: Test for power of two safely (Closed)

Created:
4 years ago by Raymond Toy
Modified:
4 years ago
Reviewers:
hongchan
CC:
chromium-reviews, blink-reviews, haraken, hongchan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test for power of two safely Use integer operations to test if an integer is a power of two. And check that the value is in range before testing for a power. BUG=675570 TEST= Committed: https://crrev.com/8c22c74f1f57853ea427fa5f21f170144d4103ed Cr-Commit-Position: refs/heads/master@{#439603}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp View 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioUtilities.h View 1 chunk +4 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/platform/audio/AudioUtilities.cpp View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Raymond Toy
PTAL
4 years ago (2016-12-19 17:34:52 UTC) #4
hongchan
lgtm with nit https://codereview.chromium.org/2582323003/diff/1/third_party/WebKit/Source/platform/audio/AudioUtilities.h File third_party/WebKit/Source/platform/audio/AudioUtilities.h (right): https://codereview.chromium.org/2582323003/diff/1/third_party/WebKit/Source/platform/audio/AudioUtilities.h#newcode34 third_party/WebKit/Source/platform/audio/AudioUtilities.h:34: namespace AudioUtilities { Just an idea: ...
4 years ago (2016-12-19 21:57:48 UTC) #7
Raymond Toy
On 2016/12/19 21:57:48, hongchan wrote: > lgtm with nit > > https://codereview.chromium.org/2582323003/diff/1/third_party/WebKit/Source/platform/audio/AudioUtilities.h > File third_party/WebKit/Source/platform/audio/AudioUtilities.h ...
4 years ago (2016-12-19 21:59:57 UTC) #8
blink-reviews
Sure - LGTM again. On Mon, Dec 19, 2016 at 1:59 PM rtoy@chromium.org via codereview.chromium.org ...
4 years ago (2016-12-19 22:18:35 UTC) #9
chromium-reviews
Sure - LGTM again. On Mon, Dec 19, 2016 at 1:59 PM rtoy@chromium.org via codereview.chromium.org ...
4 years ago (2016-12-19 22:18:35 UTC) #10
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/2582323003/1
4 years ago (2016-12-19 22:52:45 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 22:58:56 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-19 23:00:48 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8c22c74f1f57853ea427fa5f21f170144d4103ed
Cr-Commit-Position: refs/heads/master@{#439603}

Powered by Google App Engine
This is Rietveld 408576698