[Cfp-interest 2384] Re: FLT_EVAL_METHOD

Vincent Lefevre vincent at vinc17.net
Mon Feb 14 18:40:48 PST 2022


On 2022-02-15 11:15:23 +1100, 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?

On i686 (32-bit x86) with GCC 4.1.2, using -std=c99 -O0 or -O2,
FLT_EVAL_METHOD was defined as 2.

On x86_64 with the Open64 Compiler Suite Version 4.1,
using -std=c99 -O2, FLT_EVAL_METHOD was defined as 2.

On ia64 (Itanium) with ICC 10.1 20080212, using -std=c99 -O1 or -O2,
FLT_EVAL_METHOD was defined as -1 (with -std=c99 -O0, it was defined
as 0).

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the Cfp-interest mailing list