The default rounding mode of the fpu is " round toward nearest . " using Fpu的默認(rèn)舍入模式為“舍入為最接近的整數(shù)” 。使用
The rounding mode will be one of four as documented in intel reference manuals 舍入模式應(yīng)是記錄在intel參考手冊(cè)中的四種模式之一:
Results in generation of the fistp instruction , which uses whatever ambient rounding mode is to do the conversion 導(dǎo)致生成fistp指令,該指令可使用任意環(huán)境舍入模式執(zhí)行該轉(zhuǎn)換。
You should thoroughly test the portions of your code that are sensitive to rounding modes before relying upon code built with 生成的代碼前,要徹底測(cè)試對(duì)舍入模式敏感的代碼部分。
And the compiler performs a floating - point calculation , the rounding mode you specified will not be in effect unless 更改舍入模式,并且編譯器執(zhí)行浮點(diǎn)計(jì)算,則指定的舍入模式將無(wú)效,除非打開(kāi)