Small cleanup to DEFINE-BYTE-BASHERS
authorLutz Euler <lutz.euler@freenet.de>
Tue, 30 Aug 2011 22:40:10 +0000 (18:40 -0400)
committerPaul Khuong <pvk@pvk.ca>
Tue, 30 Aug 2011 22:40:10 +0000 (18:40 -0400)
Remove an unneeded SETF of the result of an INCF in a copy loop.
At least on x86[-64] this shortens the generated code in the byte
basher functions by removing a redundant move instruction.

src/code/bit-bash.lisp

index bd25d4b..17d0e1e 100644 (file)
                            (flet ((get-next-src ()
                                     (setf prev next)
                                     (setf next (funcall src-ref-fn src
-                                                        (setf src-word-offset (incf src-word-offset))))))
+                                                        (incf src-word-offset)))))
                              (declare (inline get-next-src))
                              ,@(unless (= bytes-per-word 1)
                                 `((unless (zerop dst-byte-offset)