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

Issue 2077563002: base: Use compiler builtins for byte swapping (Closed)

Created:
4 years, 6 months ago by robert.bradford
Modified:
4 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Use compiler builtins for byte swapping Blink/WTF already makes use of compiler builtins for endian byte swapping so do the same in Chromium base itself. BUG=620779 TEST=base_unittests:ByteOrderTest.* Committed: https://crrev.com/1a09b177d4641f50d96c82218c0fd0155d27ae4f Cr-Commit-Position: refs/heads/master@{#400540}

Patch Set 1 #

Patch Set 2 : Add unittests #

Patch Set 3 : add <stdlib.h> to sys_byteorder.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -11 lines) Patch
M base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/sys_byteorder.h View 1 2 1 chunk +19 lines, -11 lines 0 comments Download
A base/sys_byteorder_unittest.cc View 1 2 1 chunk +122 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
robert.bradford
danakj@ Could you review this change in base/ ?
4 years, 6 months ago (2016-06-16 18:00:03 UTC) #4
danakj
Would you mind adding a unit test for these methods?
4 years, 6 months ago (2016-06-16 18:05:21 UTC) #5
robert.bradford
On 2016/06/16 18:05:21, danakj wrote: > Would you mind adding a unit test for these ...
4 years, 6 months ago (2016-06-17 11:14:58 UTC) #6
danakj
Thanks :) There's a compiler problem on windows: e:\b\build\slave\win\build\src\base\sys_byteorder.h(23): error C3861: '_byteswap_ushort': identifier not found ...
4 years, 6 months ago (2016-06-17 18:10:23 UTC) #7
robert.bradford
On 2016/06/17 18:10:23, danakj wrote: > Do you need #include <stdlib.h> on windows? Fixed. I ...
4 years, 6 months ago (2016-06-17 22:02:06 UTC) #10
danakj
LGTM bots willing
4 years, 6 months ago (2016-06-17 22:06:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2077563002/60001
4 years, 6 months ago (2016-06-17 22:19:27 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 6 months ago (2016-06-17 23:26:24 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 23:29:25 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1a09b177d4641f50d96c82218c0fd0155d27ae4f
Cr-Commit-Position: refs/heads/master@{#400540}

Powered by Google App Engine
This is Rietveld 408576698