Messages in this thread | | | Date | 7 Aug 2004 22:26:30 +0200 | Date | Sat, 7 Aug 2004 22:26:30 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH] Re-implemented i586 asm AES (updated) |
| |
On Sat, Aug 07, 2004 at 09:49:45AM +0200, Kasper Sandberg wrote: > i dont know anything at all about this, but wouldnt it be possible to > optimize it even more, if there were a version for each cpu, like one > for athlon-xp and one for p4?
I also haven't looked at the code (It seems except for Linus/James everybody posting to this thread is clueless about the actual code - is that a good sign or a bad one? ;-).
But if someone wanted to write such optimized versions .altinstructions would make it easy to switch to the right version at runtime. There is no bit for Athlon-XP right now, but for AMD K8 B/C and for P3/P4. A bit for XP could be relatively easily added. You can also test for SSE2, MMX etc. which may be more generic.
-Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |