[Cfp-interest 2380] Re: FLT_EVAL_METHOD
Fred J. Tydeman
tydeman at tybor.com
Mon Feb 14 17:01:53 PST 2022
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.
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the Cfp-interest
mailing list