The default rounding mode of the fpu is " round toward nearest . " using Fpu的默认舍入模式为“舍入为最接近的整数” 。使用
The rounding mode will be one of four as documented in intel reference manuals 舍入模式应是记录在intel参考手册中的四种模式之一:
Results in generation of the fistp instruction , which uses whatever ambient rounding mode is to do the conversion 导致生成fistp指令,该指令可使用任意环境舍入模式执行该转换。
You should thoroughly test the portions of your code that are sensitive to rounding modes before relying upon code built with 生成的代码前,要彻底测试对舍入模式敏感的代码部分。
And the compiler performs a floating - point calculation , the rounding mode you specified will not be in effect unless 更改舍入模式,并且编译器执行浮点计算,则指定的舍入模式将无效,除非打开