diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-12 01:35:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-12 01:35:15 +0000 |
commit | 2236d6e12474b6f6b0e6728058257eff9e3e16b6 (patch) | |
tree | 0905aaddeff5df90c3f72e828a10eba7d8c9c304 /sysdeps/i386/bits/byteswap.h | |
parent | 9c7ff11a5cd628ffbe31a7b2de3027ec5b030d8b (diff) | |
download | glibc-2236d6e12474b6f6b0e6728058257eff9e3e16b6.tar.gz glibc-2236d6e12474b6f6b0e6728058257eff9e3e16b6.tar.xz glibc-2236d6e12474b6f6b0e6728058257eff9e3e16b6.zip |
Update.
* sysdeps/i386/bits/byteswap.h (__bswap_32): Use bswap instruction also for P4.
Diffstat (limited to 'sysdeps/i386/bits/byteswap.h')
-rw-r--r-- | sysdeps/i386/bits/byteswap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/i386/bits/byteswap.h b/sysdeps/i386/bits/byteswap.h index 0d7d75cb42..33af208888 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 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2000, 2002, 2003 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 @@ -64,7 +64,8 @@ __bswap_16 (unsigned short int __bsx) # if __GNUC__ >= 2 /* 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__ +# if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ \ + && !defined __pentium4__ # define __bswap_32(x) \ (__extension__ \ ({ register unsigned int __v, __x = (x); \ |