# HG changeset patch # User diego # Date 1161035239 0 # Node ID fbe263601152ec1129dabcc95d1f8cad327574e2 # Parent f7a6b2bb3a2f7fec65f203a850548b5bec699a6d Fix crash with illegal instruction, cmov is available on 686 and later only. diff -r f7a6b2bb3a2f -r fbe263601152 cabac.h --- a/cabac.h Mon Oct 16 21:22:47 2006 +0000 +++ b/cabac.h Mon Oct 16 21:47:19 2006 +0000 @@ -460,7 +460,7 @@ "movl "LOW "(%2), %%ebx \n\t" //eax:state ebx:low, edx:range, esi:RangeLPS "subl %%esi, %%edx \n\t" -#ifdef CMOV_IS_FAST +#if (defined CMOV_IS_FAST && __CPU__ >= 686) "movl %%edx, %%ecx \n\t" "shl $17, %%edx \n\t" "cmpl %%ebx, %%edx \n\t"