]> git.eshelyaron.com Git - emacs.git/commit
Better commutative binary numerical op codegen
authorMattias Engdegård <mattiase@acm.org>
Sun, 29 Jan 2023 12:34:48 +0000 (13:34 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 29 Jan 2023 12:48:23 +0000 (13:48 +0100)
commit254c75fc2935e7edef079166d90b231278115a2f
treee0255c78283d649134a5c0723929a8b736410649
parente55855c5a1e85e230d2860c973358a34eb72da64
Better commutative binary numerical op codegen

* lisp/emacs-lisp/bytecomp.el (byte-compile-variadic-numeric):
Put a constant argument last for better LAP code opportunities.
This applies to commutative binary operations (+ and *).
`min` and `max` are not included being not quite commutative.
lisp/emacs-lisp/bytecomp.el