Developer Guide and Reference

Contents

fp-model, fp

Controls the semantics of floating-point calculations.

Syntax

Linux:
-fp-model
keyword
macOS:
-fp-model
keyword
Windows:
/fp:
keyword
Arguments
keyword
Specifies the semantics to be used. Possible values are:
precise
Disables optimizations that are not value-safe on floating-point data.
fast[=1|2]
Enables more aggressive optimizations on floating-point data.
consistent
The compiler uses default heuristics to determine results for different optimization levels or between different processors of the same architecture.
strict
Enables precise and except, disables contractions, and
enables pragma
stdc fenv_access
.
source
Rounds intermediate results to source-defined precision.
double
Rounds intermediate results to 53-bit (double) precision.
extended
Rounds intermediate results to 64-bit (extended) precision.
[no-]except
(Linux*
and
macOS*
) or
except[-]
(Windows* )