[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:32:45 CEST 2015


# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1434432354 -19800
#      Tue Jun 16 10:55:54 2015 +0530
# Node ID 1dd1efa10db3b2a6aa014f4f605d8a3e3c586a7b
# Parent  604eda76ccdefdbd9002baae85f1bbfd94b5acd5
fix issue #143 x265 is slow when it is build with GCC 5.1

diff -r 604eda76ccde -r 1dd1efa10db3 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 10:55:54 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 >= 50700 /* gcc_version >= gcc-5.7.0 */
 #define HAVE_AVX2
 #endif
 #elif defined(_MSC_VER)


More information about the x265-devel mailing list