Why don't we switch to C like floating pointed arithmetic instead of automatic expansion to reals?

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 5 01:17:00 PDT 2016


On Friday, 5 August 2016 at 07:59:15 UTC, deadalnix wrote:
> On Friday, 5 August 2016 at 07:43:19 UTC, Ilya Yaroshenko wrote:
>> You are wrong that there are far fewer of those cases. This is 
>> naive point of view. A lot of netlib math functions require 
>> exact IEEE arithmetic. Tinflex requires it. Python C backend 
>> and Mir library require exact IEEE arithmetic. Atmosphere 
>> package requires it, Atmosphere is used as reference code for 
>> my publication in JMS, Springer. And the most important case: 
>> no one top scientific laboratory will use a language without 
>> exact IEEE arithmetic by default.
>
> Most C compilers always promote float to double, so I'm not 
> sure what point you are trying to make here.

1. Could you please provide an assembler example with clang or 
recent gcc?
2. C compilers not promote double to 80-bit reals anyway.


More information about the Digitalmars-d mailing list