www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - real.mant_dig on windows?

reply 9il <ilyayaroshenko gmail.com> writes:
Should it always be 53? or it can be 64, when?

Thank you
Jun 22 2020
parent kinke <noone nowhere.com> writes:
On Tuesday, 23 June 2020 at 02:56:36 UTC, 9il wrote:
 Should it always be 53? or it can be 64, when?

 Thank you
For LDC, it's 53 (and .sizeof == 8) for MSVC targets, but 64 (x87) for MinGW, reflecting the accompanying C runtime's `long double`. [And IIRC, MS disallows any x87 usage in kernel code.] For DMD, it's always 64, it only has x87 reals.
Jun 23 2020