Differences in results when using the same function in CTFE and Runtime

Abdulhaq alynch4048 at gmail.com
Tue Aug 13 11:14:35 UTC 2024


On Tuesday, 13 August 2024 at 11:02:07 UTC, Quirin Schroll wrote:

> I honestly don’t know how JRE did implement `double` operations 
> on e.g. the Intel 80486, but if I try using `gcc -mfpmath=387 
> -O3` and add some `double` values, intermediate results are 
> stored and loaded again. Very inefficient. If I use `long 
> double`, that does not happen.
>

For those who haven't really run into numerical analysis before, 
this paper is worth reading. I've given a link to the HN 
discussion around it:

https://news.ycombinator.com/item?id=37028310



More information about the Digitalmars-d mailing list