Here are a couple of nearest scaling MMX paths I wrote a long time ago for Loongson and other things using the MMX code. I've got a few more patches for the MMX code that I'll send out as I benchmark them. I don't really expect any reviews, so barring objections I'll plan to commit them in a few days.