This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
An Algorithm for the Computation of Binary Logarithms
November 1991 (vol. 40 no. 11)
pp. 1267-1270

The author presents a simple algorithm for the computation of the base-2 logarithm of a given binary number. The concept can be easily extended to base-N. Unlike other methods, this is not a curve fitting of the base-2 logarithm of a given binary number. The algorithm constitutes a simple step-by-step, bit-by-bit, computation of the logarithm of binary numbers. It can be easily implemented in simple microcode, and offers precision that is proportional to the number of performed iterations. Thus, it asymptotically converges to the true logarithm of the given number.

[1] E. L. Hall, D. D. Lynch, and S. J. Dwyer III, "Generation of products and quotients using approximate binary logarithms for digital filtering applications,"IEEE Trans. Comput., vol. C-19, pp. 97-105, Feb. 1970.
[2] T. Kurokawa, J. A. Payne, and S. C. Lee, "Error analysis of recursive digital filters implemented with logarithmic number systems,"IEEE Trans. Acoust., Speech, Signal Processing, vol. ASSP-28, pp. 706-715, Dec. 1980.
[3] N. G. Kingsbury and P. J. W. Rayner, "Digital filtering using logarithmic arithmetic"Electron. Lett., vol. 7, no. 2, pp. 56-58, Jan. 1971.
[4] M. H. Etzel, Bell Laboratories, "Logarthimics addition for digital signal processing applications,"IEEE Trans. Circuits Syst., vol. CAS-32, pp. 694-697.
[5] H.-Y. Lo "Binary logarithms for computing integral and nonintegral roots and powers,"Int. J. Electron., vol. 40, no. 4, pp. 357-364, 1976.
[6] J. N. Mitchell, Jr., "Computer multiplication and division using binary logarithms,"IRE Trans. Electron. Comput., pp. 512-517, Aug. 1962.
[7] G. W. Gerrity, "Computer representation of real numbers,"IEEE Trans. Comput., vol. C-31, no. 8, pp. 709-714, Aug. 1982.
[8] J. H. Lang, C. A. Zukowski, R. O. LaMaire, and C. H. An, "Integrated-circuit logarithmic arithmetic units,"IEEE Trans. Comput., vol. C-34, pp. 475-483, May 1985.
[9] T. A. Brubaker and J. C. Becker, "Multiplication using logarithms implemented with read-only memory,"IEEE Trans. Comput., vol. C-24, pp. 761-765, Aug. 1975.
[10] F. J. Taylor, "An extended precision logarithmic number system,"IEEE Trans. Acoust., Speech, Signal Processing, vol. ASSP-31, pp. 231-233, Feb. 1983.
[11] S. C. Lee and A. D. Edgar, "The focus number system,"IEEE Trans. Comput., vol. C-26, pp. 1167-1170, Nov. 1977.
[12] F. J. Taylor, "A hybrid floating-point logarithmic number system processor,"IEEE Trans. Circuits Syst., vol. CAS-32, pp. 92-95, Jan. 1985.
[13] M. Combet, H. Van Zonneveld, and L. Verbeek, "Computation of the base two logarithm of binary numbers,"IEEE Trans. Electron. Comput., vol. EC-14, pp. 863-867, Dec. 1965.
[14] D. Marino, "New algorithms for the approximate evaluation in hardware of binary logarithms and elementary functions,"IEEE Trans. Comput., vol. C-21, pp. 1416-1421, Dec. 1972.
[15] T. C. Chen, "Automatic computation of exponential, logarithms, rations and square roots,"IBM J. Res. Develop., pp. 380-388, July 1972.
[16] E. E. Swartzlander, Jr., and A. G. Alexopoulos, "The sign logarithm number system,"IEEE Trans. Comput., vol. C-24, pp. 1238-1242, Dec. 1975.
[17] H.-Y. Lo and Y. Aoki, "Generation of a precise binary logarithm with difference grouping programmable logic array,"IEEE Trans. Comput., vol. C-34, pp. 681-691, Aug. 1985.
[18] S.-Y. Shi, "Shortcut to logarithms combines table lookup and computation,"Comput. Design, pp. 186-189, May 1976.
[19] J. C. Majithia and D. Levan, "A note on base-2 logarithm computations,"Proc. IEEE, pp. 1519-1520, 1973.
[20] Lo and Chen, "A hardwired generalized algorithm for generating the logarithm base-kby iteration,"IEEE Trans. Comput., vol. C-36, pp. 1363-1367, Nov. 1987.

Index Terms:
binary logarithms computation; algorithm; base-2 logarithm; binary number; base-N; microcode; iterations; algorithm theory; digital arithmetic.
Citation:
D.K. Kostopoulos, "An Algorithm for the Computation of Binary Logarithms," IEEE Transactions on Computers, vol. 40, no. 11, pp. 1267-1270, Nov. 1991, doi:10.1109/12.102831
Usage of this product signifies your acceptance of the Terms of Use.