[Cfp-interest 2381] Re: FLT_EVAL_METHOD

Damian McGuckin damianm at esi.com.au
Mon Feb 14 17:26:02 PST 2022


On Mon, 14 Feb 2022, Fred J. Tydeman wrote:

> On Tue, 15 Feb 2022 11:15:23 +1100 (AEDT) Damian McGuckin wrote:
>>
>> These days, compilers seem to have it as 0, unless changed when you 
>> invoke the compiler. Was it always thus or did compilers used to have 
>> it set as 1 or 2?
>
> For Intel x87 FPU, it should be set as 2 (since everything is done as 80-bit long double).
> For Intel sse (which came long after x87), it should be set as 0.
>
> ARM should set it as 0.
>
> IBM S/360 mainframe should set it as 0.

Thanks Fred.

I am glad your memory on such things is better than mine.

Stay safe - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer


More information about the Cfp-interest mailing list