Claims
- 1. A logarithm approximation method, comprising:
(a) providing N-bit numbers c and d where N a positive integer and d is less than or equal to c; (b) extracting M-bit number m from said c where M is a positive integer less than N, said m aligned to the most significant non-zero bit of c; (c) extracting M-bit number n from said d, said n aligned to said m; (d) piecewise linearly approximating a logarithm of said m; (e) adjusting the approximation of step (d) by a table entry; (f) piecewise linearly approximating a logarithm of said n; (g) adjusting the approximation of step (f) by a table entry; and (h) approximating a logarithm of the quotient d/c by the difference of results of step (g) and step (e).
- 2. The method of claim 1, wherein:
(a) M equals 5; and (b) said logarithm has base such that 10logbase2=16
- 3. A method of logarithm approximation, comprising:
(a) providing N-bit positive integer c=x1x2 . . . xN with N a positive integer and x1 the most significant bit and XN the least significant bit; (b) providing N-bit positive integer d=y1y2 . . . yN with y1 the most significant bit and yN the least significant bit and with d less than or equal to c; (c)extracting M-bit number m from said c, said m with most significant bit aligned to xj of said c where x1, x2, . . . , xk−1 are all 0 and xk is 1 where k is a positive integer with 1≦k≦N; (d) extracting M-bit number n from said d, said n with most significant bit aligned to yk with said k from step (c); (e) when said m is in the range 2i to 2i+1−1 for a positive integer i, define a number t=m2M−i+(M−i)2M−1+table[m] where table[ ] is a lookup table; (f) when said n is in the range 2j to 2j+1−1 for a positive integer j, define a number u=n2M−1−j+(j−1)2M−1+table[n]; and (g) taking t-u as an approximation of log(d/c).
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority from provisional applications: Serial No. 60/296,937, filed Jun. 8, 2001. The following patent applications disclose related subject matter: Ser. No. ______, filed ______ (______). These referenced applications have a common assignee with the present application.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60296937 |
Jun 2001 |
US |