[x265] [PATCH] fix issue #143 x265 is slow when it is build with GCC 5.1

dnyaneshwar at multicorewareinc.com dnyaneshwar at multicorewareinc.com
Tue Jun 16 07:45:54 CEST 2015


# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1434433503 -19800
#      Tue Jun 16 11:15:03 2015 +0530
# Node ID dfcefd23cf3d2df0d7ffb1dc4fadfede8ae0e33c
# Parent  604eda76ccdefdbd9002baae85f1bbfd94b5acd5
fix issue #143 x265 is slow when it is build with GCC 5.1

diff -r 604eda76ccde -r dfcefd23cf3d source/common/vec/vec-primitives.cpp
--- a/source/common/vec/vec-primitives.cpp	Mon Jun 15 14:52:02 2015 +0530
+++ b/source/common/vec/vec-primitives.cpp	Tue Jun 16 11:15:03 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)


More information about the x265-devel mailing list