Optimize truncate, ceiling and friends when divisor is 1 or -1.
authorStas Boukarev <stassats@gmail.com>
Mon, 7 May 2012 12:18:33 +0000 (16:18 +0400)
committerStas Boukarev <stassats@gmail.com>
Mon, 7 May 2012 12:18:33 +0000 (16:18 +0400)
commit2892e353d4f36e81ab36e2c1474e932a1c00b6ca
tree2e65e1ac1938c7ef62fb1cf7cb33b73bc890120f
parent4e168fe00bbbb10196ef0bbfad2e85f7d361f5ae
Optimize truncate, ceiling and friends when divisor is 1 or -1.

If divisor is 1, return (values x 0), if it's -1 (values (- x) 0). If
it's a floating point truncation, like ftruncate or fceiling,
(values (- (float x)) 0).
NEWS
src/compiler/srctran.lisp