This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6730] New: [PARISC] small atomic.h optimization
- From: "deller at gmx dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Jul 2008 16:31:42 -0000
- Subject: [Bug libc/6730] New: [PARISC] small atomic.h optimization
- Reply-to: sourceware-bugzilla at sourceware dot org
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.