Mercurial > libavcodec.hg
comparison cabac.h @ 3972:f5f1c9af095d libavcodec
move outcommented START/STOP_TIMER to a hopefully better place for benchmarking ...
author | michael |
---|---|
date | Mon, 09 Oct 2006 18:20:00 +0000 |
parents | e8a6d5c1ab0b |
children | 93746612bc78 |
comparison
equal
deleted
inserted
replaced
3971:e8a6d5c1ab0b | 3972:f5f1c9af095d |
---|---|
361 refill(c); | 361 refill(c); |
362 } | 362 } |
363 | 363 |
364 static int get_cabac(CABACContext *c, uint8_t * const state){ | 364 static int get_cabac(CABACContext *c, uint8_t * const state){ |
365 //FIXME gcc generates duplicate load/stores for c->low and c->range | 365 //FIXME gcc generates duplicate load/stores for c->low and c->range |
366 //START_TIMER | |
367 #ifdef ARCH_X86 | 366 #ifdef ARCH_X86 |
368 int bit; | 367 int bit; |
369 | 368 |
370 #define LOW "0" | 369 #define LOW "0" |
371 #define RANGE "4" | 370 #define RANGE "4" |
484 c->low <<= lps_mask; | 483 c->low <<= lps_mask; |
485 if(!(c->low & CABAC_MASK)) | 484 if(!(c->low & CABAC_MASK)) |
486 refill2(c); | 485 refill2(c); |
487 #endif | 486 #endif |
488 #endif | 487 #endif |
489 //STOP_TIMER("get_cabac") | |
490 return bit; | 488 return bit; |
491 } | 489 } |
492 | 490 |
493 static int get_cabac_bypass(CABACContext *c){ | 491 static int get_cabac_bypass(CABACContext *c){ |
494 c->low += c->low; | 492 c->low += c->low; |