首页> 外国专利> Method and system for estimating a base-2 logarithm of a number

Method and system for estimating a base-2 logarithm of a number

机译:估计数字的以2为底的对数的方法和系统

摘要

The present invention is directed to methods and systems for estimating the log base-2 of a fixed point binary number using a single polynomial for an entire possible range of input numbers. An estimation of the log base-2 of a fixed-point binary number in either hardware or software may be implemented using a minimal number of parameters. In particular, a single 2nd order or greater polynomial may be sufficient to cover an entire range of input values for any arbitrary input word precision. The present invention provides a method and system for estimating a logarithm of a number where a linear approximation of a fractional part is determined and the linear approximation is implemented in a single polynomial function for estimating the fractional part for a range of input values. A circuit for generating an integer part and an estimate of a fractional part of a logarithm may include a shift register for loading a valid input data and for generating an estimate of a fractional part and a counter for loading a total number of bits in an input data and for generating an integer part, wherein the circuit implements a single polynomial for generating an improved estimate of the fractional part.
机译:本发明针对用于针对输入数的整个可能范围使用单个多项式来估计定点二进制数的对数以2为底的方法和系统。可以使用最少数量的参数来实现硬件或软件中定点二进制数的对数以2为底的对数估计。特别地,单个2 nd 阶或更大的多项式可能足以覆盖任何任意输入字精度的整个输入值范围。本发明提供了一种用于估计数量的对数的方法和系统,其中确定了分数部分的线性近似,并且在单个多项式函数中实施了线性近似,以针对输入值的范围来估计分数部分。用于生成对数的整数部分和小数部分的估计的电路可以包括:移位寄存器,用于加载有效输入数据并用于生成小数部分的估计;以及计数器,用于将输入中的位数总数加载数据并产生整数部分,其中电路实现单个多项式,以产生分数部分的改进估计。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号