Printing shortest decimal form of floating point number with Mir
9il
ilyayaroshenko at gmail.com
Tue Jan 5 10:42:16 UTC 2021
On Tuesday, 5 January 2021 at 09:47:41 UTC, Walter Bright wrote:
> On 1/4/2021 11:22 PM, 9il wrote:
>> I can't reproduce the same DMD output as you.
>
> I did it on Windows 32 bit. I tried it on Linux 32, which does
> indeed show the behavior you mentioned. At the moment I don't
> know why the different behaviors.
>
> https://issues.dlang.org/show_bug.cgi?id=21526
>
>
>> It just uses SSE, which I think a good way to go, haha.
>
> As I mentioned upthread, it will use SSE when SSE is baseline
> on the CPU target, and it will always round to precision.
Does this mean that DMD Linux 32-bit executables should compile
with SSE codes? I ask because DMD compiles Linux 32-bit
executables with x87 codes when -O is passed and with SSE if no
-O is passed. That is very weird.
More information about the Digitalmars-d-announce
mailing list