[armedbear-ticket] [armedbear] #41: Compilation of single-/double-float arithmetic to immediate byte code

armedbear armedbear-devel at common-lisp.net
Mon Jan 19 20:00:10 UTC 2009


#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.

-- 
Ticket URL: <http://127.0.0.1:8000/armedbear/ticket/41>
armedbear <http://common-lisp.net/project/armedbear>
armedbear


More information about the armedbear-ticket mailing list