Always false float comparisons

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sun May 15 05:11:58 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.
>>
>> 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.
>
> And be 20x slower than hardware floats. Is it really worth it?

Yes. What is the proportion of CTFE floating point operation 
right know in the total compile time ? I'd be highly supersized 
if it was anything close to 1% .



More information about the Digitalmars-d mailing list