This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] byteswap.h: fix gcc ver test for __builtin_bswap32
- From: Rich Felker <dalias at aerifal dot cx>
- To: libc-alpha at sourceware dot org
- Date: Wed, 28 Nov 2012 23:16:11 -0500
- Subject: Re: [PATCH] byteswap.h: fix gcc ver test for __builtin_bswap32
- References: <1354162043-16829-1-git-send-email-vapier@gentoo.org>
On Wed, Nov 28, 2012 at 11:07:23PM -0500, Mike Frysinger wrote:
> The __builtin_bswap32 function was introduced in gcc-4.3, not gcc-4.2.
> Fix the __GNUC_PREREQ test to reflect this.
Using __builtin_bswap32 is utterly useless. Ever since the early to
mid 4.x series, GCC generates the proper optimized code for the naive
direct expression of bswap32 in C.
Rich