Commit 32de2805 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/x86/cabac: factorize broken llvm/clang check out

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 63d7684f
...@@ -27,6 +27,13 @@ ...@@ -27,6 +27,13 @@
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "config.h" #include "config.h"
#if (defined(__i386) && defined(__clang__) && (__clang_major__<2 || (__clang_major__==2 && __clang_minor__<10)))\
|| ( !defined(__clang__) && defined(__llvm__) && __GNUC__==4 && __GNUC_MINOR__==2 && __GNUC_PATCHLEVEL__<=1)
# define BROKEN_COMPILER 1
#else
# define BROKEN_COMPILER 0
#endif
#if HAVE_INLINE_ASM #if HAVE_INLINE_ASM
#ifdef BROKEN_RELOCATIONS #ifdef BROKEN_RELOCATIONS
...@@ -149,9 +156,7 @@ ...@@ -149,9 +156,7 @@
#endif /* BROKEN_RELOCATIONS */ #endif /* BROKEN_RELOCATIONS */
#if HAVE_7REGS && !BROKEN_COMPILER
#if HAVE_7REGS && !(defined(__i386) && defined(__clang__) && (__clang_major__<2 || (__clang_major__==2 && __clang_minor__<10)))\
&& !( !defined(__clang__) && defined(__llvm__) && __GNUC__==4 && __GNUC_MINOR__==2 && __GNUC_PATCHLEVEL__<=1)
#define get_cabac_inline get_cabac_inline_x86 #define get_cabac_inline get_cabac_inline_x86
static av_always_inline int get_cabac_inline_x86(CABACContext *c, static av_always_inline int get_cabac_inline_x86(CABACContext *c,
uint8_t *const state) uint8_t *const state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment