Force usage of double (instead of higher precision)

kinke via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 28 17:07:35 PDT 2017


On Wednesday, 28 June 2017 at 22:16:48 UTC, Simon Bürger wrote:
> I am currently using LDC on 64-bit-Linux if that is relevant.

It is, as LDC on Windows/MSVC would use 64-bit compile-time 
reals. ;)

Changing it to double on other platforms is trivial if you 
compile LDC yourself. You'll want to use this alias: 
https://github.com/ldc-developers/ldc/blob/master/ddmd/root/ctfloat.d#L19, https://github.com/ldc-developers/ldc/blob/master/ddmd/root/ctfloat.h#L19


More information about the Digitalmars-d-learn mailing list