[PATCH] byteswap.h: fix gcc ver test for __builtin_bswap32

Rich Felker dalias@aerifal.cx
Thu Nov 29 04:16:00 GMT 2012


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



More information about the Libc-alpha mailing list