简体   繁体   中英

Pragma for fast floating point arithmetic

I was looking for a setting that would let me do something similar to /fp:fast switch, but with pragma. Unfortunately, the below doesn't compile #pragma float_control( fast, off )

That does not work because the documentation clearly states that a value for a float_control pragma can be precise or except :

https://msdn.microsoft.com/en-us/library/45ec64h6.aspx

Btw, next time please specify what development environment for C++ you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM