Skip to content
  • rtoy's avatar
    Implement a fast fround for single and double floats. This is enabled · d611150a
    rtoy authored
    everywhere except for x87 builds since there is a possible roundoff
    issue due to the 80-bit registers for x87.
    
    This is some 2-3 times faster than the existing fround function.
    
    code/float.lisp:
    o Implementations of %unary-fround/single-float,
      %unary-fround/double-float, and %unary-fround.  Declare the first
      two as inline too.
    
    compiler/float-tran.lisp:
    o Tell compiler about %unary-fround.
    o Transform fround to a call to %unary-fround.
    o Transform %unary-fround to special versions for single and double
      float arguments.
    d611150a