[dmd-internals] Correction to name mangling doc

Sean Kelly sean at invisibleduck.org
Wed Sep 1 15:36:15 PDT 2010


On Sep 1, 2010, at 3:29 PM, Sean Kelly wrote:

> On Sep 1, 2010, at 12:58 PM, Don Clugston wrote:
>> 
>> The mangled value is just the %A representation of the number.
>> ulong u = 0x9A522B6AE7D566CFL;
>> writefln("%A  %X", 1234.5678L, (u<<1));
>> ---prints---
>> 0X1.34A456D5CFAACD9EP+10  34A456D5CFAACD9E
>> Note that the exponent is decimal, not hex.
> 
> Why the left shift to get the original %A representation?  From the code Walter attached, I wouldn't expect that step.

Forget I said anything.  The %LA output of 1234.5678 is "0X9.A522B6AE7D566CFP+7"  I should have checked this first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-internals/attachments/20100901/0e9a9457/attachment.html>


More information about the dmd-internals mailing list