comparison cabac.h @ 4034:fbe263601152 libavcodec

Fix crash with illegal instruction, cmov is available on 686 and later only.
author diego
date Mon, 16 Oct 2006 21:47:19 +0000
parents f7a6b2bb3a2f
children b7f31a32bb30
comparison
equal deleted inserted replaced
4033:f7a6b2bb3a2f 4034:fbe263601152
458 "andl $0xC0, %%ebx \n\t" 458 "andl $0xC0, %%ebx \n\t"
459 "movzbl "MANGLE(ff_h264_lps_range)"(%%eax, %%ebx, 2), %%esi\n\t" 459 "movzbl "MANGLE(ff_h264_lps_range)"(%%eax, %%ebx, 2), %%esi\n\t"
460 "movl "LOW "(%2), %%ebx \n\t" 460 "movl "LOW "(%2), %%ebx \n\t"
461 //eax:state ebx:low, edx:range, esi:RangeLPS 461 //eax:state ebx:low, edx:range, esi:RangeLPS
462 "subl %%esi, %%edx \n\t" 462 "subl %%esi, %%edx \n\t"
463 #ifdef CMOV_IS_FAST 463 #if (defined CMOV_IS_FAST && __CPU__ >= 686)
464 "movl %%edx, %%ecx \n\t" 464 "movl %%edx, %%ecx \n\t"
465 "shl $17, %%edx \n\t" 465 "shl $17, %%edx \n\t"
466 "cmpl %%ebx, %%edx \n\t" 466 "cmpl %%ebx, %%edx \n\t"
467 "cmova %%ecx, %%esi \n\t" 467 "cmova %%ecx, %%esi \n\t"
468 "sbbl %%ecx, %%ecx \n\t" 468 "sbbl %%ecx, %%ecx \n\t"