This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Also check __corei7__ in i386/x86_64 bits/byteswap.h


On 03/17/2012 10:11 AM, H.J. Lu wrote:
> GCC 4.7.0 defines __corei7__ for -march=corei7.  This patch adds
> __corei7__ check in i386/x86_64 bits/byteswap.h.  OK to install?

Isn't this (and the last couple added) recent enough that we can just
defer to the gcc builtin?  I.e.

#if __GCC_PREREQ(4,2)
# define __bswap_16(x)  __builtin_bswap32((unsigned)(x) << 16)
# define __bswap_32(x)  __builtin_bswap32(x)
#else
... rest
#endif


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]