# HG changeset patch # User diego # Date 1161289473 0 # Node ID 5ccdefd60f610415377346050f1b98c37311a830 # Parent 87694a28120cafce3ee7fe04be82d0ef90d86c30 Fix PIC compilation, some defines were under #ifdef !PIC but used in the PIC case nevertheless. patch by Bernhard Rosenkranzer, bero arklinux org diff -r 87694a28120c -r 5ccdefd60f61 cabac.h --- a/cabac.h Thu Oct 19 18:22:03 2006 +0000 +++ b/cabac.h Thu Oct 19 20:24:33 2006 +0000 @@ -363,14 +363,14 @@ static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state){ //FIXME gcc generates duplicate load/stores for c->low and c->range -#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__)) - int bit; - #define LOW "0" #define RANGE "4" #define BYTESTART "12" #define BYTE "16" #define BYTEEND "20" +#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__)) + int bit; + #ifndef BRANCHLESS_CABAC_DECODER asm volatile( "movzbl (%1), %0 \n\t"