]> git.eshelyaron.com Git - emacs.git/commit
Prefer '(evenp A)' to '(= 0 (logand A 1))'
authorStefan Kangas <stefankangas@gmail.com>
Mon, 17 Feb 2025 18:30:44 +0000 (19:30 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:53:25 +0000 (09:53 +0100)
commit3bacba4666eb83cce0b5d260a5719ef26c20580e
tree47d0c2b56ad8e2af3a6f4111b1939c235c32c8d7
parent3be64f0f310337d3042226060edcf1c83aa09621
Prefer '(evenp A)' to '(= 0 (logand A 1))'

* lisp/calc/calc-arith.el (calcFunc-dint):
* lisp/calculator.el (calculator-expt):
* lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf):
* lisp/emacs-lisp/elint.el (elint-check-defcustom-form):
* lisp/ps-print.el (ps-print-page-p):
(ps-print-sheet-p): Prefer '(evenp A)' to '(= 0 (logand A 1))' and
variations thereof.

(cherry picked from commit 7c7cf3e8c88de6af91b110584f3aa8aff8011409)
lisp/calc/calc-arith.el
lisp/ps-print.el