Is there an equivalent to -ffast-math for a Visual Studio C ++ compiler

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?

+4
source share
2 answers

You are looking /fp:precise, although this is also the default.

, VS, /fp:strict, , , .

, , , , . , /fp:fast , /fp:fast, /fp:precise, , .

, Hans Passant -

+6

MSV++ , g++ -ffast-math.

-1

All Articles