#41: Compilation of single-/double-float arithmetic to immediate byte code -------------------------+-------------------------------------------------- Reporter: ehuelsmann | Owner: ehuelsmann Type: enhancement | Status: new Priority: major | Milestone: Component: compiler | Version: Keywords: | -------------------------+-------------------------------------------------- Currently, the following code
" (lambda (x) (declare (double-float x)) (+ 3.0e0 (* 12.0e0 x))) "
disassembles to a call to a LispObject function for + and one for *.
However, this code could be more efficient if only 1 new object would be required. This can be achieved by unboxing X, then doing the math in Java byte code and boxing the result before it's returned.