This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Recognize recent x86 CPUs in string.h
- From: jb999 at gmx dot de
- To: libc-alpha at sourceware dot org
- Date: Wed, 22 Oct 2014 22:48:00 +0200
- Subject: [PATCH] Recognize recent x86 CPUs in string.h
- Authentication-results: sourceware.org; auth=none
If gcc is compiled --with-arch, recent CPUs won't be recognized.
* sysdeps/x86/bits/string.h: Add recent CPUs.
diff -Nur a/sysdeps/x86/bits/string.h b/sysdeps/x86/bits/string.h
--- a/sysdeps/x86/bits/string.h 2014-10-22 22:31:44.000000000 +0200
+++ b/sysdeps/x86/bits/string.h 2014-10-22 22:39:54.000000000 +0200
@@ -29,6 +29,10 @@
|| defined __pentiumpro__ || defined __pentium4__ \
|| defined __nocona__ || defined __atom__ \
|| defined __core2__ || defined __corei7__ \
+ || defined __nehalem__ || defined __westmere__ \
+ || defined __sandybridge__ || defined __ivybridge__ \
+ || defined __haswell__ || defined __broadwell__ \
+ || defined __bonnell__ || defined __silvermont__ \
|| defined __k6__ || defined __geode__ \
|| defined __k8__ || defined __athlon__ \
|| defined __amdfam10__)