[Bug libc/6730] New: [PARISC] small atomic.h optimization

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug libc/6730] New: [PARISC] small atomic.h optimization

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the file ports/sysdeps/unix/sysv/linux/hppa/bits/atomic.h a LWS call is
done, and then the kernel return value is negated (from - to +) with this
line:
 sub   %%r0, %%r21, %%r21  
A small optimization is to drop this negation and instead change
 if(lws_errno == EFAULT || lws_errno == ENOSYS)
to
 if(lws_errno == -EFAULT || lws_errno == -ENOSYS)

--
           Summary: [PARISC] small atomic.h optimization
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
        AssignedTo: carlos at systemhalted dot org
        ReportedBy: deller at gmx dot de
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug ports/6730] [PARISC] small atomic.h optimization

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |ports


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug ports/6730] [PARISC] small atomic.h optimization

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From carlos at systemhalted dot org  2008-07-08 16:35 -------
Helge,

Thanks. I'll put this on my queue.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug ports/6730] [PARISC] small atomic.h optimization

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.12


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug ports/6730] [PARISC] small atomic.h optimization

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|                            |hppa-linux-gnu
 GCC target triplet|                            |hppa-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.