Skip to content

Commit

Permalink
* sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
Browse files Browse the repository at this point in the history
	and __geode__ to the list of i486+ CPUs.
	* sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
  • Loading branch information
Ulrich Drepper committed Jan 25, 2007
1 parent c1f0486 commit 9d6cde3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-01-24 Jakub Jelinek <jakub@redhat.com>

* sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
and __geode__ to the list of i486+ CPUs.
* sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.

2007-01-23 Ulrich Drepper <drepper@redhat.com>

* stdio-common/_itoa.c: Include <limits.h>.
Expand Down
6 changes: 4 additions & 2 deletions sysdeps/i386/bits/byteswap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Macros to swap the order of bytes in integer values.
Copyright (C) 1997,1998,2000,2002,2003,2006 Free Software Foundation, Inc.
Copyright (C) 1997, 1998, 2000, 2002, 2003, 2006, 2007
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
Expand Down Expand Up @@ -66,7 +67,8 @@ __bswap_16 (unsigned short int __bsx)
`bswap' opcode. On i386 we have to use three instructions. */
# if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ \
&& !defined __pentium4__ && !defined __k8__ && !defined __athlon__ \
&& !defined __k6__
&& !defined __k6__ && !defined __nocona__ && !defined __core2__ \
&& !defined __geode__
# define __bswap_32(x) \
(__extension__ \
({ register unsigned int __v, __x = (x); \
Expand Down
6 changes: 4 additions & 2 deletions sysdeps/x86_64/bits/byteswap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* 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, 2007
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
Expand Down Expand Up @@ -59,7 +60,8 @@
# if __WORDSIZE == 64 || (defined __i486__ || defined __pentium__ \
|| defined __pentiumpro__ || defined __pentium4__ \
|| defined __k8__ || defined __athlon__ \
|| defined __k6__)
|| defined __k6__ || defined __nocona__ \
|| defined __core2__ || defined __geode__)
/* To swap the bytes in a word the i486 processors and up provide the
`bswap' opcode. On i386 we have to use three instructions. */
# define __bswap_32(x) \
Expand Down

0 comments on commit 9d6cde3

Please sign in to comment.