| title | -Qsafe_fp_loads | Microsoft Docs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||
| ms.date | 11/04/2016 | |||||||||
| ms.reviewer | ||||||||||
| ms.suite | ||||||||||
| ms.technology |
|
|||||||||
| ms.tgt_pltfrm | ||||||||||
| ms.topic | article | |||||||||
| dev_langs |
|
|||||||||
| ms.assetid | 2b2ce52d-ba57-4bd3-a739-47a7f8bfaba9 | |||||||||
| caps.latest.revision | 9 | |||||||||
| author | corob-msft | |||||||||
| ms.author | corob | |||||||||
| manager | ghogen | |||||||||
| translation.priority.ht |
|
|||||||||
| translation.priority.mt |
|
Requires integer move instructions for floating-point values and disables certain floating-point load optimizations.
/Qsafe_fp_loads
/Qsafe_fp_loads is only available in the compilers that target x86; it is not available in the compilers that target x64 or ARM.
/Qsafe_fp_loads forces the compiler to use integer move instructions instead of floating-point move instructions to move data between memory and MMX registers. This option also disables register load optimization for floating-point values that can be loaded in multiple control paths when the value may cause an exception on load—for example, a NaN value.
This option is overridden by /fp:except. /Qsafe_fp_loads specifies a subset of the compiler behavior that's specified by /fp:except.
/Qsafe_fp_loads is incompatible with /clr and /fp:fast. For more information about floating point compiler options, see /fp (Specify Floating-Point Behavior).
-
Open the project's Property Pages dialog box. For details, see Working with Project Properties.
-
Select the C/C++ folder.
-
Select the Command Line property page.
-
Type the compiler option in the Additional Options box.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.
/Q Options (Low-Level Operations)
Compiler Options
Setting Compiler Options