# HG changeset patch # User Glenn Morris # Date 1209259617 0 # Node ID c8cc1acc029fe3aff2cbaa9249bff038bef94634 # Parent 7d261daf53c6b000973b9448bdb6f1348c0619b0 (calculator-expt): Modify previous change to just use the expanded cl definition of oddp. diff -r 7d261daf53c6 -r c8cc1acc029f lisp/calculator.el --- a/lisp/calculator.el Sun Apr 27 01:20:10 2008 +0000 +++ b/lisp/calculator.el Sun Apr 27 01:26:57 2008 +0000 @@ -5,7 +5,7 @@ ;; Author: Eli Barzilay ;; Keywords: tools, convenience -;; Time-stamp: +;; Time-stamp: ;; This file is part of GNU Emacs. @@ -1795,18 +1795,18 @@ ;; For small x, the range error comes from large y. 0.0) ((and (> x 0.0) (< y 0.0)) - ;; For large positive x and negative y, the range error + ;; For large positive x and negative y, the range error ;; comes from large negative y. 0.0) ((and (> x 0.0) (> y 0.0)) - ;; For large positive x and positive y, the range error + ;; For large positive x and positive y, the range error ;; comes from large y. 1.0e+INF) ;; For the rest, x must be large and negative. ;; The range errors come from large integer y. ((< y 0.0) 0.0) - ((not (zerop (% (truncate y) 2))) + ((eq (logand (truncate y) 1) 1) ; expansion of cl `oddp' ;; If y is odd -1.0e+INF) (t