Tells the compiler the mode in which to speculate on floating-point operations.
Windows: C/C++ > Optimization > Floating-Point Speculation
Linux: Floating Point > Floating-Point SpeculationMac OS: None
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
Linux and Mac OS: | -fp-speculation=mode |
Windows: | /Qfp-speculation=mode |
mode | Is the mode for floating-point operations. Possible values are: | |
fast | Tells the compiler to speculate on floating-point operations. | |
safe | Tells the compiler to disable speculation if there is a possibility that the speculation may cause a floating-point exception. | |
strict | Tells the compiler to disable speculation on floating-point operations. | |
off | This is the same as specifying strict. |
-fp-speculation=fast
or /Qfp-speculation=fast |
The compiler speculates on floating-point operations. This is also the behavior when optimizations are enabled. However, if you specify no optimizations (-O0 on Linux; /Od on Windows), the default is -fp-speculation=safe (Linux) or /Qfp-speculation=safe (Windows). |
This option tells the compiler the mode in which to speculate on floating-point operations.
Linux: -IPF-fp-speculation (systems
using IA-64 architecture only)
Mac OS: None
Windows: /QIPF-fp-speculation (systems using IA-64
architecture only)