Always false float comparisons

xenon325 via Digitalmars-d digitalmars-d at puremagic.com
Thu May 12 20:43:43 PDT 2016


On Friday, 13 May 2016 at 03:18:05 UTC, Jack Stouffer wrote:
> On Friday, 13 May 2016 at 01:03:57 UTC, Walter Bright wrote:
>> 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.
>> [...]
>
> And be 20x slower than hardware floats. Is it really worth it?

Emulator is meant for computation during compilation only, so 
CTFE results are consistent across different compilers and 
compiler host hardware (IIUC).

-- Alexander


More information about the Digitalmars-d mailing list