Hi, 2012/5/11 Ronald S. Bultje <[email protected]>: > I agree a cpuflags-based SPLATW implementation would be wonderful. Do > you have time to go through all current users of SPLATW to ensure we > don't break anything (i.e. make it use mmx code where mmx2 was > intended because it doesn't use cpuflags yet)? If not, I can do that > over the weekend, hopefully.
The issue is that the full intent of SPLATW can't be handled by MMX. The most common use, and the easiest to deal with, is the case where 3rd argument is 0. I see 2 ways (surely there are more to deal with that: 1) Is it possible, and is it desirable to have SPLATW macro cleanly cause an error when called from code invoking it in a MMX context? Then most of the code could stay in, at the cost of maybe a semantic weirdness for MMX 2) Create a SPLATW0 macro for cases where 3rd argument is 0. Probably someone can come up with a better idea, and a regexp for 2). Christophe _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
