# HG changeset patch # User michael # Date 1160997080 0 # Node ID ca4a837b896d4ccf5ec6440b2267703cee26add5 # Parent 2e7133456c562c9852ed4411d09cc041e4832c28 fix !CMOV_IS_FAST case (iam not really happy with the fix but i didnt come up with a better one quickly) diff -r 2e7133456c56 -r ca4a837b896d cabac.h --- a/cabac.h Sun Oct 15 21:04:10 2006 +0000 +++ b/cabac.h Mon Oct 16 11:11:20 2006 +0000 @@ -470,13 +470,14 @@ "subl %%edx, %%ebx \n\t" "xorl %%ecx, %%eax \n\t" #else /* CMOV_IS_FAST */ -FIXTHIS "movl %%edx, %%ecx \n\t" + "shl $17, %%edx \n\t" "subl %%ebx, %%edx \n\t" "sarl $31, %%edx \n\t" //lps_mask "subl %%ecx, %%esi \n\t" //RangeLPS - range "andl %%edx, %%esi \n\t" //(RangeLPS - range)&lps_mask "addl %%ecx, %%esi \n\t" //new range + "shl $17, %%ecx \n\t" "andl %%edx, %%ecx \n\t" "subl %%ecx, %%ebx \n\t" "xorl %%edx, %%eax \n\t"