×

Apparatus and method for computing a logarithm of a floating-point number

  • US 20040010532A1
  • Filed: 07/09/2002
  • Published: 01/15/2004
  • Est. Priority Date: 07/09/2002
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus for computing a logarithm to a base p of a floating-point number X wherein the floating-point number X is represented in the format of (−

  • 1)Sx·

    2Ex·

    Mx, where Mx =(1+fx)=(1+Ax·

    2

    K
    )+(Bx·

    2

    N
    ), where Sx is a sign, Ex is an exponent, Mx is a mantissa, 1≦

    Mx<

    2, fx is a N-bit fraction, Ax is a value of the most significant K bits of fx, Bx is a value of the least significant (N−

    K) bits of fx, 0≦

    K<

    N, and p, K, N are natural numbers, the apparatus comprising;

    a first multiplier for multiplying a number whose value is logp 2 and the exponent Ex and outputting a multiplying result;

    a logarithmic table for receiving the value Ax and checking the logarithmic table to output a result;

    a first adder connected to the first multiplier and the logarithmic table for adding the multiplying result and the result to output an adding result;

    a divider for receiving the value Bx and an adding number whose value is (2K+Ax) and dividing the value Bx by the adding number to output a dividing result Rd;

    a Taylor-Series approximation circuit connected to the divider for receiving the dividing result Rd, finding a value of ln(1+Rd) and outputting the value of ln(1+Rd);

    a second multiplier for multiplying a number whose value is 1/ln(p) and the value of ln(1+Rd) to output a second multiplying result; and

    a second adder connected to the first adder and the second multiplier for adding the adding result and the second multiplying result to output the logarithm Y.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×