Use cltd instead of cdq asm mnemonic, ICC and gcc support both, but
SunStudio 12 only supports the former. Originally committed as revision 12275 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -205,7 +205,7 @@ static inline unsigned int ff_sqrt(unsigned int a)
|
||||
#if defined(ARCH_X86)
|
||||
#define MASK_ABS(mask, level)\
|
||||
asm volatile(\
|
||||
"cdq \n\t"\
|
||||
"cltd \n\t"\
|
||||
"xorl %1, %0 \n\t"\
|
||||
"subl %1, %0 \n\t"\
|
||||
: "+a" (level), "=&d" (mask)\
|
||||
|
Reference in New Issue
Block a user