Mercurial > libavcodec.hg
comparison msmpeg4.c @ 4116:7a08ccdc8550 libavcodec
Use common define for x86_32 and x86_64.
author | diego |
---|---|
date | Wed, 01 Nov 2006 18:34:40 +0000 |
parents | 34fdffe98bd0 |
children | 8535fcac43c1 |
comparison
equal
deleted
inserted
replaced
4115:4e1b1a37e9d6 | 4116:7a08ccdc8550 |
---|---|
657 | 657 |
658 /* XXX: the following solution consumes divisions, but it does not | 658 /* XXX: the following solution consumes divisions, but it does not |
659 necessitate to modify mpegvideo.c. The problem comes from the | 659 necessitate to modify mpegvideo.c. The problem comes from the |
660 fact they decided to store the quantized DC (which would lead | 660 fact they decided to store the quantized DC (which would lead |
661 to problems if Q could vary !) */ | 661 to problems if Q could vary !) */ |
662 #if (defined(ARCH_X86) || defined(ARCH_X86_64)) && !defined PIC | 662 #if (defined(ARCH_X86)) && !defined PIC |
663 asm volatile( | 663 asm volatile( |
664 "movl %3, %%eax \n\t" | 664 "movl %3, %%eax \n\t" |
665 "shrl $1, %%eax \n\t" | 665 "shrl $1, %%eax \n\t" |
666 "addl %%eax, %2 \n\t" | 666 "addl %%eax, %2 \n\t" |
667 "addl %%eax, %1 \n\t" | 667 "addl %%eax, %1 \n\t" |