[FFmpeg-devel] [RFC][PATCH] DSPUtilize some functions from APE decoder

Loren Merritt lorenm
Thu Jul 3 11:35:35 CEST 2008


On Thu, 3 Jul 2008, Michael Niedermayer wrote:
> On Thu, Jul 03, 2008 at 03:29:07AM +0300, Ivan Kalvachev wrote:
>
>> I'm not sure why you use pointer to local variable,
>> there must be way to give the return variable directly
>> to the asm block, so if compiler pleases and that variable
>> is assigned to eax register then "movd" would put the value
>> in eax directly and return it this way.
>
> movd %%xmm7, %0\n\t" : "=rm"(res)
> might work though ive not tried and x86-64 might have problems
> with it

"=r". Both x86_32 and x86_64 return values in eax, and there's no point in 
encouraging gcc to pessimize it :)

--Loren Merritt




More information about the ffmpeg-devel mailing list