发明授权
- 专利标题: Fast multiplication of floating point values and integer powers of two
- 专利标题(中): 浮点数和二进制的整数幂的快速乘法
-
申请号: US09075074申请日: 1998-05-08
-
公开(公告)号: US06233595B1公开(公告)日: 2001-05-15
- 发明人: Lei Cheng , Frank J. Gorishek, IV , Yi Liu
- 申请人: Lei Cheng , Frank J. Gorishek, IV , Yi Liu
- 主分类号: G06F9302
- IPC分类号: G06F9302
摘要:
A method for performing fast multiplication in a microprocessor is disclosed. The method comprises detecting multiplication operations that have a floating point operand and an integer operand, wherein the integer operand is an integer power of two. Once detected, a multiplication operation meeting these criteria may be executed by using an integer adder to sum the integer power and the floating point operand's exponent to from a product exponent. The bias of the integer operand's exponent may also be subtracted. A product mantissa is simply copied from the floating point operand's mantissa. The floating point operand's sign bit may be inverted to form the product's sign bit if the integer operand is negative. Advantageously, the product is generated using integer addition which is faster than floating point multiplication. The method may be implemented in hardware or software.
信息查询