From: Jakub Jelinek Date: Mon, 12 Feb 2007 21:21:03 +0000 (+0000) Subject: * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__ X-Git-Tag: cvs/fedora-glibc-20070221T1011~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a7cd5b4146452e4ba913b047789d87322b45e16;p=platform%2Fupstream%2Fglibc.git * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__ to the list of i486+ CPUs. * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise. 2007-02-12 Jakub Jelinek * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__ to the list of i486+ CPUs. * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 6a2d824..507f759 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-12 Jakub Jelinek + + * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__ + to the list of i486+ CPUs. + * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise. + 2007-02-12 Ulrich Drepper * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference. diff --git a/sysdeps/i386/bits/byteswap.h b/sysdeps/i386/bits/byteswap.h index 3baad85..7f2ddc2 100644 --- a/sysdeps/i386/bits/byteswap.h +++ b/sysdeps/i386/bits/byteswap.h @@ -68,7 +68,7 @@ __bswap_16 (unsigned short int __bsx) # if !defined __i486__ && !defined __pentium__ && !defined __pentiumpro__ \ && !defined __pentium4__ && !defined __k8__ && !defined __athlon__ \ && !defined __k6__ && !defined __nocona__ && !defined __core2__ \ - && !defined __geode__ + && !defined __geode__ && !defined __amdfam10__ # define __bswap_32(x) \ (__extension__ \ ({ register unsigned int __v, __x = (x); \ diff --git a/sysdeps/x86_64/bits/byteswap.h b/sysdeps/x86_64/bits/byteswap.h index 7514a9f..ec2b178 100644 --- a/sysdeps/x86_64/bits/byteswap.h +++ b/sysdeps/x86_64/bits/byteswap.h @@ -61,7 +61,8 @@ || defined __pentiumpro__ || defined __pentium4__ \ || defined __k8__ || defined __athlon__ \ || defined __k6__ || defined __nocona__ \ - || defined __core2__ || defined __geode__) + || defined __core2__ || defined __geode__ \ + || defined __amdfam10__) /* 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) \