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

Issue 2738063005: Use native (optimized) functions for byte order conversion. (Closed)

Created:
3 years, 9 months ago by joachim
Modified:
3 years, 9 months ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Use native (optimized) functions for byte order conversion. Instead of manually copying single bytes, the native functions like "htobe32" are used. BUG=None Review-Url: https://codereview.webrtc.org/2738063005 Cr-Commit-Position: refs/heads/master@{#17277} Committed: https://chromium.googlesource.com/external/webrtc/+/38fd44e51cbde57a277b85368ad247077642d13d

Patch Set 1 #

Patch Set 2 : Fix compiling on Mac. #

Patch Set 3 : Fix compilation on Windows. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -72 lines) Patch
M webrtc/base/byteorder.h View 1 2 2 chunks +70 lines, -72 lines 4 comments Download

Messages

Total messages: 13 (5 generated)
joachim
Ptal, this implements an old TODO. https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h File webrtc/base/byteorder.h (right): https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h#newcode18 webrtc/base/byteorder.h:18: #include "webrtc/base/basictypes.h" Moved ...
3 years, 9 months ago (2017-03-09 23:36:53 UTC) #2
joachim
On 2017/03/09 23:36:53, joachim wrote: > Ptal, this implements an old TODO. > > https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h ...
3 years, 9 months ago (2017-03-16 16:19:27 UTC) #3
tommi
lgtm https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h File webrtc/base/byteorder.h (right): https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h#newcode18 webrtc/base/byteorder.h:18: #include "webrtc/base/basictypes.h" On 2017/03/09 23:36:53, joachim wrote: > ...
3 years, 9 months ago (2017-03-16 16:37:02 UTC) #4
tommi
On 2017/03/16 16:37:02, tommi (webrtc) wrote: > lgtm > > https://codereview.webrtc.org/2738063005/diff/40001/webrtc/base/byteorder.h > File webrtc/base/byteorder.h (right): ...
3 years, 9 months ago (2017-03-16 16:37:43 UTC) #5
joachim
On 2017/03/16 16:37:43, tommi (webrtc) wrote: > On 2017/03/16 16:37:02, tommi (webrtc) wrote: > > ...
3 years, 9 months ago (2017-03-16 16:47:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2738063005/40001
3 years, 9 months ago (2017-03-16 16:47:12 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/38fd44e51cbde57a277b85368ad247077642d13d
3 years, 9 months ago (2017-03-16 17:15:17 UTC) #12
joachim
3 years, 9 months ago (2017-03-16 17:34:21 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.webrtc.org/2757703002/ by jbauch@webrtc.org.

The reason for reverting is: Breaks Chromium FYI bots:
http://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/builds...
http://build.chromium.org/p/chromium.webrtc.fyi/builders/Linux%20Builder/buil...

FAILED: newlib_pnacl/obj/third_party/webrtc/base/rtc_base/networkmonitor.o 
/b/c/goma_client/gomacc
../../native_client/toolchain/linux_x86/pnacl_newlib/bin/pnacl-clang++ -MMD -MF
newlib_pnacl/obj/third_party/webrtc/base/rtc_base/networkmonitor.o.d
-DNACL_TC_REV=62bfd122aee87d4eb4a7876950e18c793c626cd0 -Dtimezone=_timezone
-DV8_DEPRECATION_WARNINGS -DUSE_OPENSSL_CERTS=1 -DNO_TCMALLOC
-DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL
-DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG
-DNVALGRIND -DWEBRTC_RESTRICT_LOGGING -DEXPAT_RELATIVE_PATH -DHAVE_SCTP
-DENABLE_EXTERNAL_AUTH -DHAVE_WEBRTC_VIDEO -DHAVE_WEBRTC_VOICE
-DLOGGING_INSIDE_WEBRTC -DUSE_WEBRTC_DEV_BRANCH -DFEATURE_ENABLE_VOICEMAIL
-DEXPAT_RELATIVE_PATH -DGTEST_RELATIVE_PATH -DNO_MAIN_THREAD_WRAPPING
-DNO_SOUND_SYSTEM -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX
-DNO_MAIN_THREAD_WRAPPING -I../../third_party/boringssl/src/include -I../..
-Inewlib_pnacl/gen -I../../third_party/webrtc_overrides -I../../third_party
-I../../third_party/boringssl/src/include
-I../../native_client_sdk/src/libraries
-I../../native_client_sdk/src/libraries/nacl_io/include
-I../../native_client_sdk/src/libraries/third_party/newlib-extras
-Wno-uninitialized -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__=
-D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -O2 -fno-ident -fdata-sections
-ffunction-sections -g0 -fvisibility=hidden -Werror -Wno-unused-variable
-Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing
-Wno-covered-switch-default -Wno-deprecated-register
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-fvisibility-inlines-hidden -std=gnu++11 -fno-rtti -fno-exceptions -c
../../third_party/webrtc/base/networkmonitor.cc -o
newlib_pnacl/obj/third_party/webrtc/base/rtc_base/networkmonitor.o
In file included from ../../third_party/webrtc/base/networkmonitor.cc:11:
In file included from ../../third_party/webrtc/base/networkmonitor.h:16:
In file included from ../../third_party/webrtc/base/thread.h:25:
In file included from ../../third_party/webrtc/base/messagequeue.h:31:
In file included from ../../third_party/webrtc/base/socketserver.h:15:
In file included from ../../third_party/webrtc/base/socketfactory.h:14:
In file included from ../../third_party/webrtc/base/socket.h:30:
In file included from ../../third_party/webrtc/base/socketaddress.h:18:
In file included from ../../third_party/webrtc/base/ipaddress.h:29:
../../third_party/webrtc/base/byteorder.h:37:10: fatal error: 'endian.h' file
not found
#include <endian.h>
         ^
1 error generated..

Powered by Google App Engine
This is Rietveld 408576698