about summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-24 07:09:54 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-24 07:09:54 +0000
commit542a6f62afe483fe282adaf60f5c0a185c12e824 (patch)
tree32abf6b50745014c2758fbe86eb989d62dd3bcf2 /sysdeps/i386
parent249827982118008f75888dba968922f47deaa5db (diff)
downloadglibc-542a6f62afe483fe282adaf60f5c0a185c12e824.tar.gz
glibc-542a6f62afe483fe282adaf60f5c0a185c12e824.tar.xz
glibc-542a6f62afe483fe282adaf60f5c0a185c12e824.zip
[BZ #2734]
2006-08-24  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2734]
	* sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
	as in the x86-64 code to use bswap.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/bits/byteswap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/i386/bits/byteswap.h b/sysdeps/i386/bits/byteswap.h
index 33af208888..bed27559c5 100644
--- a/sysdeps/i386/bits/byteswap.h
+++ b/sysdeps/i386/bits/byteswap.h
@@ -1,5 +1,5 @@
 /* Macros to swap the order of bytes in integer values.
-   Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1997,1998,2000,2002,2003,2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -65,7 +65,8 @@ __bswap_16 (unsigned short int __bsx)
 /* To swap the bytes in a word the i486 processors and up provide the
    `bswap' opcode.  On i386 we have to use three instructions.  */
 #  if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ \
-      && !defined __pentium4__
+      && !defined __pentium4__ && !defined __k8__ && !defined __athlon__ \
+      && !defined __k6__
 #   define __bswap_32(x)						      \
      (__extension__							      \
       ({ register unsigned int __v, __x = (x);				      \