[FFmpeg-devel] [RFC] clobbers for XMM registers

Måns Rullgård mans
Thu Sep 30 20:54:27 CEST 2010


"Ronald S. Bultje" <rsbultje at gmail.com> writes:

> 2010/9/30 M?ns Rullg?rd <mans at mansr.com>:
>> Ramiro Polla <ramiro.polla at gmail.com> writes:
>>> to be used as in lavc/x86/fft_sse.c:
>>> ? ? ? ? :"+r"(j), "+r"(k)
>>> ? ? ? ? :"r"(output+n4), "r"(output+n4*3),
>>> ? ? ? ? ?"m"(*m1m1m1m1)
>>> ? ? ? ? XMM_CLOBBERS(, : "%xmm0", "%xmm1", "%xmm7")
>>> ? ? );
>>
>> That falls over if any other clobbers are needed.
>
> I'm with Ramiro:
>
> asm(".."
> : "+r"(j)
> : "m"(*m1)
> : other_clobbers XMM_CLOBBERS(, "%xmm0")
> );
>
> I think this will work.

No.  Why don't you try running it through the preprocessor with both
definitions of the macro and see for yourself?

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list