public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13926] New: __bswap_64 in bits/byeswap.h only usable by gcc
@ 2012-03-28 13:49 djohnson at osc dot edu
  2012-03-28 13:52 ` [Bug libc/13926] " djohnson at osc dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: djohnson at osc dot edu @ 2012-03-28 13:49 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13926

             Bug #: 13926
           Summary: __bswap_64 in bits/byeswap.h only usable by gcc
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: djohnson@osc.edu
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Hi,

I've found what I believe is a bug in the bits/byteswap.h file, and the defines
that control whether masks/shifts or gcc inline assembly are used to implement
the byte swap.  The 16 and 32 bits swaps are compatible with non-gcc compilers,
but the 64 bit swap can never be defined for a non-gcc compiler.  See attached
patch for what I think the defines should look like (untested patch.)

Doug

-- 
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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-25 11:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-28 13:49 [Bug libc/13926] New: __bswap_64 in bits/byeswap.h only usable by gcc djohnson at osc dot edu
2012-03-28 13:52 ` [Bug libc/13926] " djohnson at osc dot edu
2012-03-28 14:12 ` aj at suse dot de
2012-03-29 16:21 ` bugdal at aerifal dot cx
2012-04-03  7:19 ` aj at suse dot de
2014-06-25 11:26 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).