From 4ae4ca4f8e958c6d2188c393a3840ed84653dc2c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 8 Sep 2005 04:25:06 +0000 Subject: make sure we use optimized version when building for newer intel/amd cpus --- libpthread/linuxthreads/sysdeps/i386/pt-machine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpthread') 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 -- cgit v1.2.3