# HG changeset patch # User reimar # Date 1204218095 0 # Node ID 8b119a5a0644418f7d693ebad009727a732a128f # Parent 66969d0e4a6dd25522ad49c715f9a592265daa86 Use cltd instead of cdq asm mnemonic, ICC and gcc support both, but SunStudio 12 only supports the former. diff -r 66969d0e4a6d -r 8b119a5a0644 cabac.h --- a/cabac.h Thu Feb 28 16:11:56 2008 +0000 +++ b/cabac.h Thu Feb 28 17:01:35 2008 +0000 @@ -327,7 +327,7 @@ //P3:665 athlon:517 asm( "lea -0x100(%0), %%eax \n\t" - "cdq \n\t" + "cltd \n\t" "mov %0, %%eax \n\t" "and %%edx, %0 \n\t" "and %1, %%edx \n\t" @@ -599,7 +599,7 @@ "shl $17, %%ebx \n\t" "add %%eax, %%eax \n\t" "sub %%ebx, %%eax \n\t" - "cdq \n\t" + "cltd \n\t" "and %%edx, %%ebx \n\t" "add %%ebx, %%eax \n\t" "test %%ax, %%ax \n\t" @@ -646,7 +646,7 @@ "shl $17, %%ebx \n\t" "add %%eax, %%eax \n\t" "sub %%ebx, %%eax \n\t" - "cdq \n\t" + "cltd \n\t" "and %%edx, %%ebx \n\t" "add %%ebx, %%eax \n\t" "xor %%edx, %%ecx \n\t"