comparison cabac.h @ 4033:f7a6b2bb3a2f libavcodec

Expand some #endif comments.
author diego
date Mon, 16 Oct 2006 21:22:47 +0000
parents ca4a837b896d
children fbe263601152
comparison
equal deleted inserted replaced
4032:0f2bb0baf6f0 4033:f7a6b2bb3a2f
520 :"r"(state), "r"(c) 520 :"r"(state), "r"(c)
521 : "%ecx", "%ebx", "%edx", "%esi", "memory" 521 : "%ecx", "%ebx", "%edx", "%esi", "memory"
522 ); 522 );
523 bit&=1; 523 bit&=1;
524 #endif /* BRANCHLESS_CABAC_DECODER */ 524 #endif /* BRANCHLESS_CABAC_DECODER */
525 #else /* ARCH_X86 */ 525 #else /* defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__)) */
526 int s = *state; 526 int s = *state;
527 int RangeLPS= ff_h264_lps_range[0][2*(c->range&0xC0) + s]; 527 int RangeLPS= ff_h264_lps_range[0][2*(c->range&0xC0) + s];
528 int bit, lps_mask attribute_unused; 528 int bit, lps_mask attribute_unused;
529 529
530 c->range -= RangeLPS; 530 c->range -= RangeLPS;
559 c->range<<= lps_mask; 559 c->range<<= lps_mask;
560 c->low <<= lps_mask; 560 c->low <<= lps_mask;
561 if(!(c->low & CABAC_MASK)) 561 if(!(c->low & CABAC_MASK))
562 refill2(c); 562 refill2(c);
563 #endif /* BRANCHLESS_CABAC_DECODER */ 563 #endif /* BRANCHLESS_CABAC_DECODER */
564 #endif /* ARCH_X86 */ 564 #endif /* defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__)) */
565 return bit; 565 return bit;
566 } 566 }
567 567
568 static int __attribute((noinline)) get_cabac_noinline(CABACContext *c, uint8_t * const state){ 568 static int __attribute((noinline)) get_cabac_noinline(CABACContext *c, uint8_t * const state){
569 return get_cabac_inline(c,state); 569 return get_cabac_inline(c,state);