Skip to content
  • Raymond Toy's avatar
    Micro-optimize SCALE-FLOAT to use multiplication when possible. · 8f5f6abc
    Raymond Toy authored
    If the exponent (second arg of SCALE-FLOAT) is such that 2^exponent
    can be represented as a float (single or double), we can implement
    SCALE-FLOAT using a multiplication by 2^exponent, since multiplication
    by 2^exponent is exact.
    
     * src/compiler/float-tran.lisp:
       * Update deftransforms for SCALE-FLOAT to do a multiply when
         possible. 
     * tests/float-tran.lisp:
       * Add tests to make sure the deftransforms for SCALE-FLOAT are
         applied appropriately.
    8f5f6abc