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 |
---|---|---|
/fltconsistency |
-fltconsistency |
Enables improved floating-point consistency and may slightly reduce execution speed. It limits floating-point optimizations and maintains declared precision. It also disables inlining of math library functions. For more information, see the following topic:
|
/Qprec |
-mp1 |
Use this option to improve floating-point precision; this option has less impact to performance than the -mp (Linux) or /Op (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. For more information, see the following topic:
|
/Qftz |
-ftz |
Use this option to flush denormal results to zero when the application is in gradual underflow mode. Flushing the denormal values to zero with this option may improve overall application performance. Use this option if the denormal values are not critical to application behavior. Architectures:
This option affects the result of abrupt underflow by setting the floating underflow to zero and allowing the execution to continue. IA-32 and IntelŪ EM64T:
ItaniumŪ:
If this option produces undesirable results of the numerical behavior of your program, you can turn the FTZ mode off by using this option in the command line while still benefiting from the -O3 (Linux) or /O3 (Windows) optimizations: Linux:
Windows:
For more information, see the following topic:
|
/fpe |
-fpe |
This option allows some control over the results of floating-point exception handling at run time for the main program. For more information, see the following topic:
|