Printing shortest decimal form of floating point number with Mir

Guillaume Piolat first.last at gmail.com
Tue Jan 5 13:30:50 UTC 2021


On Tuesday, 5 January 2021 at 09:47:41 UTC, Walter Bright wrote:
>> The only D compiler that uses excess precision is DMD and only 
>> if -O flag is passed. The same example compiled with GDC uses 
>> write-read codes. LDC uses SSE codes.
>
> DMD still supports baseline 32 bit Windows that does not have 
> XMM registers.

It would be nice if no excess precision was ever used. It can 
sometimes gives a false sense of correctness. It has no upside 
except accidental correctness that can break when compiled for a 
different platform.
Accidental correctness of say, C integer promotion, doesn't break 
on another system - it's OK ; it's a different ilk.

What about this plan?
- use SSE all the time in DMD
- drop real :)



More information about the Digitalmars-d-announce mailing list