Created
October 14, 2015 15:50
-
-
Save mgk/aef654bc991c866d36c4 to your computer and use it in GitHub Desktop.
test libvpx 1082 patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ec623a0bb712f3519cd8f5c5be1ac464081c7411 Mon Sep 17 00:00:00 2001 | |
From: Johann <[email protected]> | |
Date: Tue, 13 Oct 2015 10:36:16 -0700 | |
Subject: [PATCH] Upstream Mozilla fix for older Apple clang builds | |
Also use the _mm_broadcastsi128_si256 intrisic for | |
Apple clang versions 4.[012] | |
https://bugzilla.mozilla.org/show_bug.cgi?id=1085607 | |
https://code.google.com/p/webm/issues/detail?id=1082 | |
Change-Id: I6bc821d8163387194ef663e94bfed91fa7281d88 | |
--- | |
diff --git a/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c b/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c | |
index 29ede19..b718678 100644 | |
--- a/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c | |
+++ b/vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c | |
@@ -41,7 +41,10 @@ | |
#if defined(__clang__) | |
# if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ <= 3) || \ | |
- (defined(__APPLE__) && __clang_major__ == 5 && __clang_minor__ == 0) | |
+ (defined(__APPLE__) && \ | |
+ ((__clang_major__ == 4 && __clang_minor__ <= 2) || \ | |
+ (__clang_major__ == 5 && __clang_minor__ == 0))) | |
+ | |
# define MM256_BROADCASTSI128_SI256(x) \ | |
_mm_broadcastsi128_si256((__m128i const *)&(x)) | |
# else // clang > 3.3, and not 5.0 on macosx. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment