[D-runtime] core.demangle: What to do if real.sizeof == double.sizeof
Don Clugston
dclugston at googlemail.com
Tue Mar 20 07:21:09 PDT 2012
On 20 March 2012 13:56, Iain Buclaw <ibuclaw at ubuntu.com> wrote:
> On 20 March 2012 12:48, Johannes Pfau <johannespfau at googlemail.com> wrote:
>> For ARM, real and double are the same types (long double == double in c).
>> Because of that bionic (android's C library) doesn't provide a strtold
>> function.
>>
>> strtold is used in core.demangle in the parseReal function. Is it safe to
>> just replace strtold with strtod for Android?
>>
>> --
>> Johannes Pfau
>>
>
> I would have thought that it would be a weak alias to strtod in the C
> library, so you need to do nothing.
Technically, the string may be an 80 bit number, even on ARM, because
it's a compile time value.
But from memory you only need the %A format anyway, which is the easy one.
More information about the D-runtime
mailing list