PATCH: Also check __corei7__ in i386/x86_64 bits/byteswap.h
Richard Henderson
rth@twiddle.net
Sat Mar 17 17:21:00 GMT 2012
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~
More information about the Libc-alpha
mailing list