mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
1a8493f0a5
commit
7c7cf3e8c8
5 changed files with 6 additions and 6 deletions
|
|
@ -874,7 +874,7 @@
|
|||
(defun calcFunc-dint (expr)
|
||||
(let ((types (math-possible-types expr)))
|
||||
(if (= types 1) 1
|
||||
(if (= (logand types 1) 0) 0
|
||||
(if (evenp types) 0
|
||||
(math-reject-arg expr 'integerp 'quiet)))))
|
||||
|
||||
(defun calcFunc-dnumint (expr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue