GDC/ARM: Help needed: Porting std.math.internal.gammafunction

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 3 10:23:08 PDT 2014


On Thursday, 3 July 2014 at 17:03:51 UTC, Johannes Pfau wrote:
> Am Thu, 03 Jul 2014 16:47:41 +0000
> schrieb "John Colvin" <john.loughran.colvin at gmail.com>:
>
>> testing the latest gdc release, writeln and friends are broken 
>> for 64bit reals. Use core.stdc.stdio.printf with %lf instead.
>
> Actually mixing code compiled with -mlong-double-64 and code 
> compiled
> without it can't really work - so I was wrong and it's not 
> easily
> possible to compile only gammafunction with -mlong-double-64
> (gammefunction calls into other maths modules).
>
> So it seems to really test this, either an ARM cross compiler + 
> ARM
> system could be used or druntime+phobos must be built with
> -mlong-double-64 as well.

That explains the fun situation I just hit: exp(14) == 14         
whut??


More information about the Digitalmars-d mailing list