This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Optimize glibc for Pentium 4
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 21 May 2003 14:06:56 -0700
- Subject: Optimize glibc for Pentium 4
I am going to optimize glibc for Pentium 4. The first change is
enclosed here. The next questions are where I put those optimized
functions and how I select them. I am thinking --enable-arch=sse2.
Any comments?
H.J.
---
--- sysdeps/unix/sysv/linux/i386/dl-procinfo.h.p4 2002-09-21 14:14:11.000000000 -0700
+++ sysdeps/unix/sysv/linux/i386/dl-procinfo.h 2003-05-21 13:58:30.000000000 -0700
@@ -92,7 +92,7 @@ enum
HWCAP_I386_AMD3D = 1 << 31,
/* XXX Which others to add here? */
- HWCAP_IMPORTANT = (HWCAP_I386_MMX)
+ HWCAP_IMPORTANT = (HWCAP_I386_MMX | HWCAP_I386_XMM | HWCAP_I386_XMM2)
};