PATCH: Remove the `q' suffix in x86_64 PTR_MANGLE/PTR_DEMANGLE

H.J. Lu hjl.tools@gmail.com
Sat Mar 17 00:46:00 GMT 2012


On Fri, Mar 16, 2012 at 4:35 PM, Roland McGrath <roland@hack.frob.com> wrote:
>> defines LP_SIZE.  We can simple use $2*LP_SIZE+1 instead of $17.
>> It works for me.
>
> That seems less obvious than just using sizeof (void *).
> You only need that macro for assembly code, where you cannot
> use generic C logic.
>

Here is the updated patch to use LP_SIZE.  It is consistent
between asm statement and asm code.  But I don't mind to use
sizeof (void *) in asm statement.

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-ptr.patch
Type: text/x-patch
Size: 2637 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120317/78e4b04a/attachment.bin>


More information about the Libc-alpha mailing list