diff options
Diffstat (limited to 'main/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch')
-rw-r--r-- | main/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch b/main/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch new file mode 100644 index 0000000000..6aa679dbc1 --- /dev/null +++ b/main/x265/x265-1.7-fix-slowness-with-gcc-5.1.patch @@ -0,0 +1,28 @@ +# HG changeset patch +# User Deepthi Nandakumar <deepthi@multicorewareinc.com> +# Date 1434559454 -19800 +# Wed Jun 17 22:14:14 2015 +0530 +# Branch stable +# Node ID 98325f22a1bad500e6a0c3372bf8177e81167cae +# Parent e0738af788da598a3cdf4458dbb46fbb07563534 +fix issue #143 x265 is slow when it is build with GCC 5.1 + +diff -r e0738af788da -r 98325f22a1ba source/common/vec/vec-primitives.cpp +--- a/source/common/vec/vec-primitives.cpp Wed May 20 10:29:09 2015 -0500 ++++ b/source/common/vec/vec-primitives.cpp Wed Jun 17 22:14:14 2015 +0530 +@@ -32,12 +32,13 @@ + #define HAVE_SSE4 + #define HAVE_AVX2 + #elif defined(__GNUC__) +-#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 3) ++#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) ++#if __clang__ || GCC_VERSION >= 40300 /* gcc_version >= gcc-4.3.0 */ + #define HAVE_SSE3 + #define HAVE_SSSE3 + #define HAVE_SSE4 + #endif +-#if __clang__ || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 7) ++#if __clang__ || GCC_VERSION >= 40700 /* gcc_version >= gcc-4.7.0 */ + #define HAVE_AVX2 + #endif + #elif defined(_MSC_VER) |