Skip to content
Commit db25e3e0 authored by Raymond Toy's avatar Raymond Toy
Browse files

Add deftransform to convert (log x 2) and (log x 10) to log2 and

%log10. This better than using the definition (/ (log x) (log base)).
This also allows exact answer for 2^n and 10^n for appropriate n.


 * src/compiler/float-tran.lisp:
   * Add deftransforms to convert (log x 2) and (log x 10) to
     kernel::log2 and kernel:%log10 
 * tests/float-tran.lisp:
   * Add tests to check the transforms are done, or not done, as
     appropriate.
parent 24511623
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment