Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu May 12 18:03:57 PDT 2016


On 5/12/2016 4:32 PM, Marco Leise wrote:
> - Unless CTFE uses soft-float implementation, depending on
>   compiler and flags used to compile a D compiler, resulting
>   executable produces different CTFE floating-point results

I've actually been thinking of writing a 128 bit float emulator, and then using 
that in the compiler internals to do all FP computation with.

It's not a panacea, as it won't change how things work in the back ends, nor 
will it change what happens at runtime, but it means the front end will give 
portable, consistent results.



More information about the Digitalmars-d mailing list