<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[215130] trunk/Source/ThirdParty/libwebrtc</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/215130">215130</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-04-07 17:00:45 -0700 (Fri, 07 Apr 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Enable SSE4 and NEON optimizations of libopus where available
https://bugs.webkit.org/show_bug.cgi?id=170592

Patch by Alex Christensen &lt;achristensen@webkit.org&gt; on 2017-04-07
Reviewed by Youenn Fablet.

* Configurations/opus.xcconfig:
* libwebrtc.xcodeproj/project.pbxproj:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceThirdPartylibwebrtcChangeLog">trunk/Source/ThirdParty/libwebrtc/ChangeLog</a></li>
<li><a href="#trunkSourceThirdPartylibwebrtcConfigurationsopusxcconfig">trunk/Source/ThirdParty/libwebrtc/Configurations/opus.xcconfig</a></li>
<li><a href="#trunkSourceThirdPartylibwebrtclibwebrtcxcodeprojprojectpbxproj">trunk/Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceThirdPartylibwebrtcChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (215129 => 215130)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/ThirdParty/libwebrtc/ChangeLog        2017-04-07 23:59:25 UTC (rev 215129)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog        2017-04-08 00:00:45 UTC (rev 215130)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2017-04-07  Alex Christensen  &lt;achristensen@webkit.org&gt;
+
+        Enable SSE4 and NEON optimizations of libopus where available
+        https://bugs.webkit.org/show_bug.cgi?id=170592
+
+        Reviewed by Youenn Fablet.
+
+        * Configurations/opus.xcconfig:
+        * libwebrtc.xcodeproj/project.pbxproj:
+
</ins><span class="cx"> 2017-04-06  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WebRTC aborts when trying to sleep on a wrong thread
</span></span></pre></div>
<a id="trunkSourceThirdPartylibwebrtcConfigurationsopusxcconfig"></a>
<div class="modfile"><h4>Modified: trunk/Source/ThirdParty/libwebrtc/Configurations/opus.xcconfig (215129 => 215130)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/ThirdParty/libwebrtc/Configurations/opus.xcconfig        2017-04-07 23:59:25 UTC (rev 215129)
+++ trunk/Source/ThirdParty/libwebrtc/Configurations/opus.xcconfig        2017-04-08 00:00:45 UTC (rev 215130)
</span><span class="lines">@@ -12,6 +12,14 @@
</span><span class="cx"> USE_HEADERMAP = NO;
</span><span class="cx"> WARNING_CFLAGS = -Wno-incompatible-pointer-types
</span><span class="cx"> GCC_PREPROCESSOR_DEFINITIONS = VAR_ARRAYS OPUS_BUILD OPUS_EXPORT= HAVE_LRINT HAVE_LRINTF OPUS_X86_MAY_HAVE_SSE2;
</span><ins>+GCC_PREPROCESSOR_DEFINITIONS[arch=arm64] = $(inherited) OPUS_ARM_PRESUME_AARCH64_NEON_INTR;
+GCC_PREPROCESSOR_DEFINITIONS[arch=x86_64] = $(inherited) $(SSE4_FLAG);
</ins><span class="cx"> 
</span><span class="cx"> EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = *_sse.c *_sse2.c;
</span><del>-EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] = ;
</del><ins>+EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] = $(EXCLUDED_SOURCE_FILE_NAMES_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
+
+// El Capitan and iossimulator can't use SSE4 intrinsics, but Sierra and newer can.
+EXCLUDED_SOURCE_FILE_NAMES_macosx_101100 = NSQ_sse.c VAD_sse.c VQ_WMat_EC_sse.c NSQ_del_dec_sse.c;
+SSE4_FLAG[sdk=macosx*] = $(SSE4_FLAG_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
+SSE4_FLAG_macosx_101200 = OPUS_X86_MAY_HAVE_SSE4_1;
+SSE4_FLAG_macosx_101300 = OPUS_X86_MAY_HAVE_SSE4_1;
</ins></span></pre></div>
<a id="trunkSourceThirdPartylibwebrtclibwebrtcxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj (215129 => 215130)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj        2017-04-07 23:59:25 UTC (rev 215129)
+++ trunk/Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj        2017-04-08 00:00:45 UTC (rev 215130)
</span><span class="lines">@@ -694,6 +694,11 @@
</span><span class="cx">                 5C4B4D0A1E4322F6002651C8 /* basicportallocator.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C4B4D061E4322F6002651C8 /* basicportallocator.h */; };
</span><span class="cx">                 5C4B4D0B1E4322F6002651C8 /* socketmonitor.cc in Sources */ = {isa = PBXBuildFile; fileRef = 5C4B4D071E4322F6002651C8 /* socketmonitor.cc */; };
</span><span class="cx">                 5C4B4D0C1E4322F6002651C8 /* socketmonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C4B4D081E4322F6002651C8 /* socketmonitor.h */; };
</span><ins>+                5C5F40971E978FDB00D94279 /* NSQ_del_dec_sse.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C5F408D1E978FD200D94279 /* NSQ_del_dec_sse.c */; };
+                5C5F40981E978FDB00D94279 /* NSQ_sse.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C5F408E1E978FD200D94279 /* NSQ_sse.c */; };
+                5C5F40991E978FDB00D94279 /* SigProc_FIX_sse.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C5F408F1E978FD200D94279 /* SigProc_FIX_sse.h */; };
+                5C5F409A1E978FDB00D94279 /* VAD_sse.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C5F40901E978FD200D94279 /* VAD_sse.c */; };
+                5C5F409B1E978FDB00D94279 /* VQ_WMat_EC_sse.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C5F40911E978FD200D94279 /* VQ_WMat_EC_sse.c */; };
</ins><span class="cx">                 5C60245F1E494DB80088F0B2 /* user_atomic.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C4B4ACB1E42C9D6002651C8 /* user_atomic.h */; };
</span><span class="cx">                 5C6024601E494DB80088F0B2 /* user_environment.c in Sources */ = {isa = PBXBuildFile; fileRef = 5C4B4ACC1E42C9D6002651C8 /* user_environment.c */; };
</span><span class="cx">                 5C6024611E494DB80088F0B2 /* user_environment.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C4B4ACD1E42C9D6002651C8 /* user_environment.h */; };
</span><span class="lines">@@ -3426,6 +3431,11 @@
</span><span class="cx">                 5C4B4D531E4323D4002651C8 /* scale_common.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = scale_common.cc; path = source/scale_common.cc; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5C4B4D591E4323D4002651C8 /* scale.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = scale.cc; path = source/scale.cc; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5C4B4D5A1E4323D4002651C8 /* video_common.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = video_common.cc; path = source/video_common.cc; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                5C5F408D1E978FD200D94279 /* NSQ_del_dec_sse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = NSQ_del_dec_sse.c; path = silk/x86/NSQ_del_dec_sse.c; sourceTree = &quot;&lt;group&gt;&quot;; };
+                5C5F408E1E978FD200D94279 /* NSQ_sse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = NSQ_sse.c; path = silk/x86/NSQ_sse.c; sourceTree = &quot;&lt;group&gt;&quot;; };
+                5C5F408F1E978FD200D94279 /* SigProc_FIX_sse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SigProc_FIX_sse.h; path = silk/x86/SigProc_FIX_sse.h; sourceTree = &quot;&lt;group&gt;&quot;; };
+                5C5F40901E978FD200D94279 /* VAD_sse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = VAD_sse.c; path = silk/x86/VAD_sse.c; sourceTree = &quot;&lt;group&gt;&quot;; };
+                5C5F40911E978FD200D94279 /* VQ_WMat_EC_sse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = VQ_WMat_EC_sse.c; path = silk/x86/VQ_WMat_EC_sse.c; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 5C63F4221E414810002CA531 /* scoped_ref_ptr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = scoped_ref_ptr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5C63F6691E415F9B002CA531 /* thread.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = thread.cc; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5C63F66A1E415F9B002CA531 /* thread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = thread.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -8927,6 +8937,11 @@
</span><span class="cx">                 5CDD8E241E43C7DC00621E92 /* x86 */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><ins>+                                5C5F408D1E978FD200D94279 /* NSQ_del_dec_sse.c */,
+                                5C5F408E1E978FD200D94279 /* NSQ_sse.c */,
+                                5C5F408F1E978FD200D94279 /* SigProc_FIX_sse.h */,
+                                5C5F40901E978FD200D94279 /* VAD_sse.c */,
+                                5C5F40911E978FD200D94279 /* VQ_WMat_EC_sse.c */,
</ins><span class="cx">                                 5CDD8E251E43C7EC00621E92 /* main_sse.h */,
</span><span class="cx">                                 5CDD8E2B1E43C7EC00621E92 /* x86_silk_map.c */,
</span><span class="cx">                         );
</span><span class="lines">@@ -9467,6 +9482,7 @@
</span><span class="cx">                                 5CDD8E701E43C80C00621E92 /* NSQ.h in Headers */,
</span><span class="cx">                                 5C4B4AC11E42C574002651C8 /* opus_private.h in Headers */,
</span><span class="cx">                                 5CDD8D511E43C79C00621E92 /* os_support.h in Headers */,
</span><ins>+                                5C5F40991E978FDB00D94279 /* SigProc_FIX_sse.h in Headers */,
</ins><span class="cx">                                 5CDD8D531E43C79C00621E92 /* pitch.h in Headers */,
</span><span class="cx">                                 5CDD8E711E43C80C00621E92 /* pitch_est_defines.h in Headers */,
</span><span class="cx">                                 5CDD8E741E43C80C00621E92 /* PLC.h in Headers */,
</span><span class="lines">@@ -10817,6 +10833,7 @@
</span><span class="cx">                                 5CDD8D341E43C79C00621E92 /* celt_encoder.c in Sources */,
</span><span class="cx">                                 5CDD8D351E43C79C00621E92 /* celt_lpc.c in Sources */,
</span><span class="cx">                                 5CDD8E401E43C80C00621E92 /* check_control_input.c in Sources */,
</span><ins>+                                5C5F409B1E978FDB00D94279 /* VQ_WMat_EC_sse.c in Sources */,
</ins><span class="cx">                                 5CDD8E411E43C80C00621E92 /* CNG.c in Sources */,
</span><span class="cx">                                 5CDD8E421E43C80C00621E92 /* code_signs.c in Sources */,
</span><span class="cx">                                 5CDD8E431E43C80C00621E92 /* control_audio_bandwidth.c in Sources */,
</span><span class="lines">@@ -10838,6 +10855,7 @@
</span><span class="cx">                                 5CDD8F3E1E43CB1E00621E92 /* encode_frame_FIX.c in Sources */,
</span><span class="cx">                                 5CDD8EE51E43C9F600621E92 /* encode_frame_FLP.c in Sources */,
</span><span class="cx">                                 5CDD8E531E43C80C00621E92 /* encode_indices.c in Sources */,
</span><ins>+                                5C5F40971E978FDB00D94279 /* NSQ_del_dec_sse.c in Sources */,
</ins><span class="cx">                                 5CDD8E541E43C80C00621E92 /* encode_pulses.c in Sources */,
</span><span class="cx">                                 5CDD8EE61E43C9F600621E92 /* energy_FLP.c in Sources */,
</span><span class="cx">                                 5CDD8D3D1E43C79C00621E92 /* entcode.c in Sources */,
</span><span class="lines">@@ -10955,10 +10973,12 @@
</span><span class="cx">                                 5CDD8E941E43C80C00621E92 /* tables_pitch_lag.c in Sources */,
</span><span class="cx">                                 5CDD8E951E43C80C00621E92 /* tables_pulses_per_block.c in Sources */,
</span><span class="cx">                                 5CDD8E991E43C80C00621E92 /* VAD.c in Sources */,
</span><ins>+                                5C5F40981E978FDB00D94279 /* NSQ_sse.c in Sources */,
</ins><span class="cx">                                 5CDD8F531E43CB1E00621E92 /* vector_ops_FIX.c in Sources */,
</span><span class="cx">                                 5CDD8D5B1E43C79C00621E92 /* vq.c in Sources */,
</span><span class="cx">                                 5CDD8E9A1E43C80C00621E92 /* VQ_WMat_EC.c in Sources */,
</span><span class="cx">                                 5CDD8F541E43CB1E00621E92 /* warped_autocorrelation_FIX.c in Sources */,
</span><ins>+                                5C5F409A1E978FDB00D94279 /* VAD_sse.c in Sources */,
</ins><span class="cx">                                 5CDD8F001E43C9F600621E92 /* warped_autocorrelation_FLP.c in Sources */,
</span><span class="cx">                                 5CDD8F011E43C9F600621E92 /* wrappers_FLP.c in Sources */,
</span><span class="cx">                                 5CDD8D2C1E43C79C00621E92 /* x86_celt_map.c in Sources */,
</span></span></pre>
</div>
</div>

</body>
</html>