Mercurial > libavcodec.hg
comparison cabac.h @ 10071:6ac0d4957d35 libavcodec
Replace #ifdef PIC checks with the more appropriate HAVE_EBX_AVAILABLE/HAVE_7REGS.
author | reimar |
---|---|
date | Fri, 21 Aug 2009 09:54:28 +0000 |
parents | 4cb7c65fc775 |
children | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
10070:68f03567b826 | 10071:6ac0d4957d35 |
---|---|
635 #endif | 635 #endif |
636 } | 636 } |
637 | 637 |
638 | 638 |
639 static av_always_inline int get_cabac_bypass_sign(CABACContext *c, int val){ | 639 static av_always_inline int get_cabac_bypass_sign(CABACContext *c, int val){ |
640 #if ARCH_X86 && !(defined(PIC) && defined(__GNUC__)) | 640 #if ARCH_X86 && HAVE_EBX_AVAILABLE |
641 __asm__ volatile( | 641 __asm__ volatile( |
642 "movl "RANGE "(%1), %%ebx \n\t" | 642 "movl "RANGE "(%1), %%ebx \n\t" |
643 "movl "LOW "(%1), %%eax \n\t" | 643 "movl "LOW "(%1), %%eax \n\t" |
644 "shl $17, %%ebx \n\t" | 644 "shl $17, %%ebx \n\t" |
645 "add %%eax, %%eax \n\t" | 645 "add %%eax, %%eax \n\t" |