Always false float comparisons

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Wed May 18 03:15:47 PDT 2016


On Wednesday, 18 May 2016 at 08:21:18 UTC, Walter Bright wrote:
> Trying to make D behave exactly like various C++ compilers do, 
> with all their semi-documented behavior and semi-documented 
> switches that affect constant folding behavior, is a hopeless 
> task.
>
> I doubt various C++ compilers are this compatible, even if they 
> follow the same ABI.
>

They aren't. For instance, GCC use arbitrary precision FB, and 
LLVM uses 128 bits soft floats in their innards.


More information about the Digitalmars-d mailing list