I work with the default C ++ compiler (I assume it is called the Visual Studio C ++ compiler), which comes with Visual Studio 2013 with the flag /Ox( Full Optimization ). Due to floating point effects, I have to disable the flag -ffast-mathwhen using the compiler gcc. Is there an equivalent option for this flag in the Visual Studio C ++ compiler configuration?
/Ox
-ffast-math
gcc
You are looking /fp:precise, although this is also the default.
/fp:precise
, VS, /fp:strict, , , .
/fp:strict
, , , , . , /fp:fast , /fp:fast, /fp:precise, , .
/fp:fast
, Hans Passant -
MSV++ , g++ -ffast-math.