Browse Source

make sure we use optimized version when building for newer intel/amd cpus

Mike Frysinger 20 years ago
parent
commit
4ae4ca4f8e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libpthread/linuxthreads/sysdeps/i386/pt-machine.h

+ 3 - 1
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