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

Ronald S. Bultje rsbultje
Thu Sep 30 19:52:09 CEST 2010


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.

Ronald



More information about the ffmpeg-devel mailing list