首页> 外国专利> Fast IEEE double precision reciprocals and square roots

Fast IEEE double precision reciprocals and square roots

机译:快速IEEE双精度倒数和平方根

摘要

A method and apparatus implement reciprocal and square root calculations using Chebyshev polynomial approximation by scaling the mantissas of IEEE floating point numbers based on splitting them into intervals, thereby allowing Chebyshev polynomials of few terms to approximate each interval and resulting in high performance. A reciprocal or square root operation is implemented in a floating point unit (FPU) of a computer having a pipelined multiply accumulate function using a Chebyshev polynomial approximation. A plurality of Chebyshev coefficients are stored in read only storage. Mantissas m of floating point numbers are scaled based on splitting the mantissas into 2.sup.n intervals i as:PPm'=2N×m-(2N+2i+1),PPwhere m' is the scaled mantissa and N is a power of 2. Using a predetermined number of high bits of the scaled mantissa, a set of stored coefficients are read from read only storage to compute the polynomial. The actual computation of the reciprocal or square root is performed by a plurality of multiply accumulates in the piplined function of the FPU to compute the polynomial approximation of the function f(m), which approximation differs from a correct answer by no more than 1 bit:PPf(m) =c.sub.0 +m'×(c.sub.1 +m'×(c.sub.2 +m'×(c.sub.3 + . . . +m'×c.sub.n))),PPwhere c.sub.0. . . c.sub.n are the set of coefficients selected by the high bits of the mantissa. In addition, the method and apparatus distinguish approximations potentially requiring one bit error correction from those known to be correct.
机译:一种方法和装置通过基于将切点划分成间隔的IEEE浮点数的尾数定标来实现使用Chebyshev多项式逼近来进行倒数和平方根计算,从而允许少数项的Chebyshev多项式近似每​​个间隔并产生高性能。使用切比雪夫多项式逼近在具有流水线乘法累加函数的计算机的浮点单元(FPU)中实现倒数或平方根运算。多个切比雪夫系数被存储在只读存储器中。浮点数的尾数m通过将尾数分成2到n个间隔i来缩放,即:

m'= 2N×m-(2N + 2i + 1),

其中m'是缩放的尾数,N是2的幂。使用预定数量的缩放的尾数高位,从只读存储中读取一组存储的系数,以计算多项式。倒数或平方根的实际计算是通过FPU的点状函数中的多个乘积进行的,以计算函数f(m)的多项式近似值,该近似值与正确答案的差值不超过1位:

f(m)= c.sub.0 + m'×(c.sub.1 + m'×(c.sub.2 + m'×(c.sub.3 +。 。+ m'×c.sub.n))),

,其中c.sub.0。 。 。 c.n是由尾数的高位选择的一组系数。另外,该方法和设备将可能需要一位纠错的近似与已知正确的近似区分开。

著录项

  • 公开/公告号US5305248A

    专利类型

  • 公开/公告日1994-04-19

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号US19930053035

  • 发明设计人 LAWRENCE M. AMMANN;

    申请日1993-04-23

  • 分类号G06F7/38;

  • 国家 US

  • 入库时间 2022-08-22 04:31:54

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号