发明授权
- 专利标题: System and method for performing decimal division
- 专利标题(中): 用于执行小数除法的系统和方法
-
申请号: US11055221申请日: 2005-02-10
-
公开(公告)号: US07519649B2公开(公告)日: 2009-04-14
- 发明人: Steven R. Carlough , Paulomi Kadakia , Wen H. Li , Eric M. Schwarz
- 申请人: Steven R. Carlough , Paulomi Kadakia , Wen H. Li , Eric M. Schwarz
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Cantor Colburn LLP
- 代理商 Lynn Augspurger
- 主分类号: G06F7/496
- IPC分类号: G06F7/496
摘要:
A method for performing decimal division including receiving a scaled divisor and dividend and storing a subset of the multiples of the scaled divisor. An accumulated quotient is initialized to be equal to zero, a first current remainder is initialized to be equal to the scaled dividend, and a second current remainder is initialized to be equal to the scaled dividend minus the scaled divisor. The following loop is performed until a selected number of quotient digits are produced. An estimated next quotient digit is calculated based on the first digit of the first current remainder. A temp remainder is selected to be either the first current remainder or the second current remainder based on the estimated next quotient digit. A first next remainder is calculated by subtracting one of the stored multiples from the temp remainder, where the stored multiple is selected based on a first digit of the first current remainder. A second next remainder is calculated by subtracting an other one of the stored multiples from the temp remainder, where the other one of the stored multiples is selected based on the first current remainder. An actual quotient digits is calculated based on the estimated next quotient digit, the first current remainder and the first next remainder. The accumulated quotient is updated with the actual next quotient digit. Finally, the first current remainder is set to be equal to the first next remainder and the second current remainder is set to be equal to the second next remainder.
公开/授权文献
- US20060179102A1 System and method for performing decimal division 公开/授权日:2006-08-10
信息查询
IPC分类: