This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13926] __bswap_64 in bits/byeswap.h only usable by gcc
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 29 Mar 2012 15:15:22 +0000
- Subject: [Bug libc/13926] __bswap_64 in bits/byeswap.h only usable by gcc
- Auto-submitted: auto-generated
- References: <bug-13926-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13926
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> 2012-03-29 15:15:22 UTC ---
The inline asm for byte swapping is obsolete and useless anyway. Since at least
early gcc 4, gcc already generates the optimal machine code if you just write
the byte swap in the most naive possible way with bitshifts and masking. The
asm should be thrown out and just replaced with static inline functions.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.