+10
−4
+1
−1
Loading
Pointless microoptimizations 'R' us: ... in (defun foo (x) (declare (optimize speed) (type (signed-byte 32) x)) (logand x #xffffffff)) on the x86, there is no need to perform the hardware AND, as we are not interested in the flags. Make it so. (The system already automatically handles the representation such that X and the result can live in the same register -- to see this, wrap the LOGAND above as (ASH (LOGAND ...) -3) and disassemble.