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 更改舍入模式,并且编译器执行浮点计算,则指定的舍入模式将无效,除非打开
Function ensures the rounding mode of the floating - point unit is toward zero truncate , by setting bits 10 and 11 of the control word 函数还通过设置控制字的第10位和第11位来确保浮点单元( fpu )的舍入模式为向零方向(截断) 。
The floating - point status and control register fpscr captures status and exceptions resulting from floating - point operations , and the fpscr also provides control bits for enabling specific exception types , as well as for selecting one of the four rounding modes 浮点状态和控制寄存器( fpscr )捕获浮点操作的状态和异常结果, fpscr还具有控制位,以支持特定的异常类型和对四种舍入模式之一的选择。