Printing shortest decimal form of floating point number with Mir

Walter Bright newshound2 at digitalmars.com
Wed Jan 6 02:30:30 UTC 2021


On 1/5/2021 2:42 AM, 9il wrote:
> 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?

The baseline Linux target does not have SSE.


> 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.

Example, please?



More information about the Digitalmars-d-announce mailing list