summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-08 04:25:06 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-08 04:25:06 +0000
commit4ae4ca4f8e958c6d2188c393a3840ed84653dc2c (patch)
tree8160cf13c70b6b48066a4e6e38bb653886619c40 /libpthread
parent7703ddcaab81da77af01dbb53cd655ee79c45370 (diff)
make sure we use optimized version when building for newer intel/amd cpus
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads/sysdeps/i386/pt-machine.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/sysdeps/i386/pt-machine.h b/libpthread/linuxthreads/sysdeps/i386/pt-machine.h
index e1f41c80e..af1818d7b 100644
--- a/libpthread/linuxthreads/sysdeps/i386/pt-machine.h
+++ b/libpthread/linuxthreads/sysdeps/i386/pt-machine.h
@@ -36,7 +36,9 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval);
/* See if we can optimize for newer cpus... */
-#if defined __GNUC__ && __GNUC__ >= 2 && defined __i486__ || defined __pentium__ || defined __pentiumpro__
+#if defined __GNUC__ && __GNUC__ >= 2 && \
+ (defined __i486__ || defined __pentium__ || defined __pentiumpro__ || defined __pentium4__ || \
+ defined __athlon__ || defined __k8__)
/* Spinlock implementation; required. */
PT_EI long int