Always false float comparisons

Manu via Digitalmars-d digitalmars-d at puremagic.com
Sun May 15 19:01:33 PDT 2016


On 14 May 2016 at 00:00, Iain Buclaw via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 13 May 2016 at 07:12, Manu via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On 13 May 2016 at 11:03, Walter Bright via Digitalmars-d
>> <digitalmars-d at puremagic.com> wrote:
>>> 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.
>>
>> No. Do not.
>> I've worked on systems where the compiler and the runtime don't share
>> floating point precisions before, and it was a nightmare.
>
> I have some bad news for you about CTFE then. This already happens in
> DMD even though float is not emulated.  :-o

O_O

Are you saying 'float' in CTFE is not 'float'? I protest this about as
strongly as I can muster...


More information about the Digitalmars-d mailing list