Hi,

2012/5/15 Ronald S. Bultje <[email protected]>:
>> The issue is that the full intent of SPLATW can't be handled by MMX.
[...]
> mmx version:
>
> movaifnidn %1, %2
> %if %3 & 2
> punpckhwd %1, %1
> %else
> punpcklwd %1, %1
> %endif
> %if %3 & 1
> punpckhdq %1, %1
> %else
> punpckldq %1, %1
> %endif
>
> I agree this is ugly, but it's the best I can think of.

I admit I didn't check the actual intent of the 3rd parameter, and
just saw pshufw in there.
So I actually think your proposal is clean enough. I can't prepare a
patch nor run a full fate run at the moment, but I would say this is
the way to go.

Christophe
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to