The options described in this topic provide optimizations with varying degrees of precision in floating-point (FP) arithmetic for the IA-32, IntelŪ EM64T, and ItaniumŪ architectures. Where options are not universally supported on all architectures, the description lists the supported architecture.
The -mp1 (Linux*) or /Qprec (Windows*) and -mp (Linux) or /Op (Windows) options improve floating-point precision, but also affect the application performance. The FP options provide optimizations with varying degrees of precision in floating-point arithmetic; -O0 (Linux) or /Od (Windows) disables these optimizations.
Windows* |
Linux* |
Description |
|---|---|---|
|
/Op |
-mp |
Use this option to limit floating-point optimizations and maintain declared precision. For example, the IntelŪ compiler can change floating-point division computations into multiplication by the reciprocal of the denominator. This change can alter the results of floating point division computations slightly. This switch may slightly reduce execution speed. See Improving or Restricting FP Arithmetic Precision. For more information, see the following topic:
Using -fp-model (Linux) or /fp (Windows) affects the behavior of this option. Refer to the -fp-model, /fp topics in Compiler Options for more information. |
|
/Qprec |
-mp1 |
Use this option to improve floating-point precision; this option has less impact to performance and disables fewer optimizations than the -fp-model precise (Linux) or /fp:precise (Windows) option. This option prevents the compiler from performing optimizations which change NaN comparison semantics; also, the option causes all values used in comparisons to be truncated to declared precision prior to use in the comparison. Furthermore, the option insures the use of library routines, which give better precision results compared to the X87 transcendental instructions. Finally, the option causes the IntelŪ Compiler to use precise divide and square root operations. The -fp-model precise (Linux) or /fp:precise (Windows) option implies this option; however, -fp-model fast (Linux) or /fp:fast (Windows) disables this option. For more information, see the following topic:
|
|
/fp |
-fp-model |
Specifies floating-point model used. For more information, see the following topic:
|