PATCH: Load futex pointer into RDI_LP and use RSP_LP to operate on stack
H.J. Lu
hjl.tools@gmail.com
Tue May 15 20:59:00 GMT 2012
On Tue, May 15, 2012 at 10:21 AM, Roland McGrath <roland@hack.frob.com> wrote:
>> FWIW, sysdeps/unix/sysv/linux/x86_64/lowlevellock.h has some
>> explicit register usages for stack and pointers. They can use
>> R*_LP instead to save a few bytes for x32.
>
> I think it's a good thing to do. Not just for the few bytes,
> but for consistency in what we do or don't truncate to 32 bits.
>
>
Here is a patch to load futex pointer into RDI_LP and use RSP_LP
to operate on stack. Tested on Linux/x86-64. OK to install.
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-nptl-LP.patch
Type: application/octet-stream
Size: 7268 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120515/ba7aad6b/attachment.obj>
More information about the Libc-alpha
mailing list