首页> 外国专利> Round for reround mode in a decimal floating point instruction

Round for reround mode in a decimal floating point instruction

机译:在十进制浮点指令中舍入为舍入模式

摘要

A round-for-reround mode (preferably in a BID encoded Decimal format) of a floating point instruction prepares a result for later rounding to a variable number of digits by detecting that the least significant digit may be a 0, and if so changing it to 1 when the trailing digits are not all 0. A subsequent reround instruction is then able to round the result to any number of digits at least 2 fewer than the number of digits of the result. An optional embodiment saves a tag indicating the fact that the low order digit of the result is 0 or 5 if the trailing bits are non-zero in a tag field rather than modify the result. Another optional embodiment also saves a half-way-and-above indicator when the trailing digits represent a decimal with a most significant digit having a value of 5. An optional subsequent reround instruction is able to round the result to any number of digits fewer or equal to the number of digits of the result using the saved tags.
机译:浮点指令的舍入舍入模式(最好采用BID编码的十进制格式)通过检测最低有效位可能为0来准备结果,以便稍后舍入为可变位数,如果是,则对其进行舍入当尾随的数字不全为0时,将结果取整为1。随后的舍入指令可以将结果舍入为任意位数,比结果的位数少至少2位。可选实施例保存标签,该标签指示以下事实:如果标签字段中的尾随位非零,则结果的低位数字为0或5,而不修改结果。当尾随的数字表示一个小数位数,其最高有效数字的值为5时,另一个可选的实施例还节省了中途指示符。可选的后续舍入指令能够将结果四舍五入为更少或更少的数字。等于使用已保存标签的结果的位数。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号