comparison cabac.h @ 4418:4cceb7c877af libavcodec

rename CMOV_IS_FAST to HAVE_FAST_CMOV and simplify configure
author mru
date Sat, 27 Jan 2007 14:10:57 +0000
parents 88967250d718
children 03f7feb14dd3
comparison
equal deleted inserted replaced
4417:426ccc1cd1ae 4418:4cceb7c877af
460 ); 460 );
461 bit&=1; 461 bit&=1;
462 #else /* BRANCHLESS_CABAC_DECODER */ 462 #else /* BRANCHLESS_CABAC_DECODER */
463 463
464 464
465 #if defined CMOV_IS_FAST 465 #if defined HAVE_FAST_CMOV
466 #define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ 466 #define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\
467 "mov "tmp" , %%ecx \n\t"\ 467 "mov "tmp" , %%ecx \n\t"\
468 "shl $17 , "tmp" \n\t"\ 468 "shl $17 , "tmp" \n\t"\
469 "cmp "low" , "tmp" \n\t"\ 469 "cmp "low" , "tmp" \n\t"\
470 "cmova %%ecx , "range" \n\t"\ 470 "cmova %%ecx , "range" \n\t"\
471 "sbb %%ecx , %%ecx \n\t"\ 471 "sbb %%ecx , %%ecx \n\t"\
472 "and %%ecx , "tmp" \n\t"\ 472 "and %%ecx , "tmp" \n\t"\
473 "sub "tmp" , "low" \n\t"\ 473 "sub "tmp" , "low" \n\t"\
474 "xor %%ecx , "ret" \n\t" 474 "xor %%ecx , "ret" \n\t"
475 #else /* CMOV_IS_FAST */ 475 #else /* HAVE_FAST_CMOV */
476 #define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ 476 #define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\
477 "mov "tmp" , %%ecx \n\t"\ 477 "mov "tmp" , %%ecx \n\t"\
478 "shl $17 , "tmp" \n\t"\ 478 "shl $17 , "tmp" \n\t"\
479 "sub "low" , "tmp" \n\t"\ 479 "sub "low" , "tmp" \n\t"\
480 "sar $31 , "tmp" \n\t" /*lps_mask*/\ 480 "sar $31 , "tmp" \n\t" /*lps_mask*/\
483 "add %%ecx , "range" \n\t" /*new range*/\ 483 "add %%ecx , "range" \n\t" /*new range*/\
484 "shl $17 , %%ecx \n\t"\ 484 "shl $17 , %%ecx \n\t"\
485 "and "tmp" , %%ecx \n\t"\ 485 "and "tmp" , %%ecx \n\t"\
486 "sub %%ecx , "low" \n\t"\ 486 "sub %%ecx , "low" \n\t"\
487 "xor "tmp" , "ret" \n\t" 487 "xor "tmp" , "ret" \n\t"
488 #endif /* CMOV_IS_FAST */ 488 #endif /* HAVE_FAST_CMOV */
489 489
490 490
491 #define BRANCHLESS_GET_CABAC(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\ 491 #define BRANCHLESS_GET_CABAC(ret, cabac, statep, low, lowword, range, tmp, tmpbyte)\
492 "movzbl "statep" , "ret" \n\t"\ 492 "movzbl "statep" , "ret" \n\t"\
493 "mov "range" , "tmp" \n\t"\ 493 "mov "range" , "tmp" \n\t"\