comparison x86/h264_i386.h @ 8590:7a463923ecd1 libavcodec

Change semantic of CONFIG_*, HAVE_* and ARCH_*. They are now always defined to either 0 or 1.
author aurel
date Tue, 13 Jan 2009 23:44:16 +0000
parents 7768bdfd4f7b
children e9d9d946f213
comparison
equal deleted inserted replaced
8589:a29b5b5c3c9d 8590:7a463923ecd1
31 31
32 #include "libavcodec/cabac.h" 32 #include "libavcodec/cabac.h"
33 33
34 //FIXME use some macros to avoid duplicating get_cabac (cannot be done yet 34 //FIXME use some macros to avoid duplicating get_cabac (cannot be done yet
35 //as that would make optimization work hard) 35 //as that would make optimization work hard)
36 #if defined(ARCH_X86) && defined(HAVE_7REGS) && \ 36 #if ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE && !defined(BROKEN_RELOCATIONS)
37 defined(HAVE_EBX_AVAILABLE) && \
38 !defined(BROKEN_RELOCATIONS)
39 static int decode_significance_x86(CABACContext *c, int max_coeff, 37 static int decode_significance_x86(CABACContext *c, int max_coeff,
40 uint8_t *significant_coeff_ctx_base, 38 uint8_t *significant_coeff_ctx_base,
41 int *index){ 39 int *index){
42 void *end= significant_coeff_ctx_base + max_coeff - 1; 40 void *end= significant_coeff_ctx_base + max_coeff - 1;
43 int minusstart= -(int)significant_coeff_ctx_base; 41 int minusstart= -(int)significant_coeff_ctx_base;
147 :"r"(c), "m"(minusindex), "m"(significant_coeff_ctx_base), "m"(sig_off) 145 :"r"(c), "m"(minusindex), "m"(significant_coeff_ctx_base), "m"(sig_off)
148 : "%"REG_c, "%ebx", "%edx", "%esi", "%"REG_D, "memory" 146 : "%"REG_c, "%ebx", "%edx", "%esi", "%"REG_D, "memory"
149 ); 147 );
150 return coeff_count; 148 return coeff_count;
151 } 149 }
152 #endif /* defined(ARCH_X86) && defined(HAVE_7REGS) && */ 150 #endif /* ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE */
153 /* defined(HAVE_EBX_AVAILABLE) && !defined(BROKEN_RELOCATIONS) */ 151 /* !defined(BROKEN_RELOCATIONS) */
154 152
155 #endif /* AVCODEC_X86_H264_I386_H */ 153 #endif /* AVCODEC_X86_H264_I386_H */