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] byteswap.h: fix gcc ver test for __builtin_bswap32


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


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