[OT] The Usual Arithmetic Confusions

Walter Bright newshound2 at digitalmars.com
Sat Feb 5 22:01:45 UTC 2022


On 2/5/2022 6:54 AM, Timon Gehr wrote:
> I get that the entire x87 design is pretty bad and so there are trade-offs, but 
> as it has now been deprecated, I hope this kind of second-guessing will become a 
> thing of the past entirely. In the meantime, I will avoid using DMD for anything 
> that requires floating-point arithmetic.

I'm not sure how you concluded that. DMD now rounds float calculations to float 
with the x87, despite the cost in speed.

If the CPU has SIMD float instructions on it, that is used instead of the x87, 
just like what every other compiler does.


More information about the Digitalmars-d mailing list