BZ#13926: Add __bswap_64 for non-GCC compilers

Andreas Jaeger aj@suse.com
Wed Mar 28 14:51:00 GMT 2012


Instead of taken the patch from bugzilla (which did not apply anymore), 
I copied the code from sysdeps/s390/bits/byteswap to all other 
implementations.

Tested on Linux/x86-64 and Linux/x86.

Ok to commit?

Andreas

2012-03-28  Andreas Jaeger  <aj@suse.de>

	[BZ #13926]
	* sysdeps/i386/bits/byteswap.h (__bswap_constant_64): Add
	definition for non gcc compilers.
	(__bswap_64): Add implementation for non gcc compilers.
	* sysdeps/x86_64/bits/byteswap.h: Likewise.
	* bits/byteswap.h: Likewise.


-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-__bswap64-definition-for-non-GCC-compilers.patch
Type: text/x-patch
Size: 4615 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120328/944412f2/attachment.bin>


More information about the Libc-alpha mailing list