首页>
外国专利>
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.
展开▼