aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-07-06 03:58:00 +0000
committerJay Belanger2007-07-06 03:58:00 +0000
commit9ae06d96f6c1a35ef6c663165b226af7ea6ecfc4 (patch)
tree318a8c7c1ffb1b2389bfb718cb2cece36218591f
parent3fa5c462849e1e1f791c29421a1dfa0b107728b6 (diff)
downloademacs-9ae06d96f6c1a35ef6c663165b226af7ea6ecfc4.tar.gz
emacs-9ae06d96f6c1a35ef6c663165b226af7ea6ecfc4.zip
(math-add-bignum): Replace number by constant.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/calc/calc.el4
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8ed55f6a515..047be6d9e9e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -12,6 +12,8 @@
12 instead of their values. 12 instead of their values.
13 (math-clip): Use math-small-integer-size instead of its value. 13 (math-clip): Use math-small-integer-size instead of its value.
14 14
15 * calc/calc.el (math-add-bignum): Replace number by constant.
16
152007-07-05 Chong Yidong <cyd@stupidchicken.com> 172007-07-05 Chong Yidong <cyd@stupidchicken.com>
16 18
17 * wid-edit.el (widget-documentation-string-value-create): Insert 19 * wid-edit.el (widget-documentation-string-value-create): Insert
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 78d6231cb15..d81c1070b9f 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -2780,7 +2780,7 @@ largest Emacs integer.")
2780 (progn 2780 (progn
2781 (setcar aa (1+ sum)) 2781 (setcar aa (1+ sum))
2782 (setq carry nil)) 2782 (setq carry nil))
2783 (setcar aa (+ sum -999))) 2783 (setcar aa (- sum (1- math-bignum-digit-size))))
2784 (if (< (setq sum (+ (car aa) (car b))) math-bignum-digit-size) 2784 (if (< (setq sum (+ (car aa) (car b))) math-bignum-digit-size)
2785 (setcar aa sum) 2785 (setcar aa sum)
2786 (setcar aa (- sum math-bignum-digit-size)) 2786 (setcar aa (- sum math-bignum-digit-size))
@@ -2790,7 +2790,7 @@ largest Emacs integer.")
2790 (if carry 2790 (if carry
2791 (if b 2791 (if b
2792 (nconc a (math-add-bignum b '(1))) 2792 (nconc a (math-add-bignum b '(1)))
2793 (while (eq (car aa) 999) 2793 (while (eq (car aa) (1- math-bignum-digit-size))
2794 (setcar aa 0) 2794 (setcar aa 0)
2795 (setq aa (cdr aa))) 2795 (setq aa (cdr aa)))
2796 (if aa 2796 (if aa