发明名称 Method and apparatus for efficient software-based integer division
摘要 A method and apparatus to perform efficient software-based integer division. The equivalent of a hardware-based integer division operation is enabled via a reciprocal multiplication operation that is facilitated by a minimum combination of multiplication (and/or add) and shift operations. Properties and equations are derived for determining minimum multiplication and shift instructions to perform an integer division of a variable dividend and constant divisor using reciprocal multiplication. Computer functions are disclosed for determining parameters from which the minimum multiplication and shift instructions can be derived. Software/firmware is then coded employing the minimum multiplication and shift instructions to perform software-based integer division operations via reciprocal multiplication. In one embodiment, the integer division operations are employed to determine a minimum number of cells required to store the data in a packet or frame that is processed by a network processor.
申请公布号 US2006095494(A1) 申请公布日期 2006.05.04
申请号 US20040975319 申请日期 2004.10.28
申请人 KUMAR ALOK 发明人 KUMAR ALOK
分类号 G06F7/38 主分类号 G06F7/38
代理机构 代理人
主权项
地址