aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-07-08 01:40:33 +0000
committerJay Belanger2007-07-08 01:40:33 +0000
commit236e165a5a78f40f74a8c5739dc1ba9485b87ec6 (patch)
tree7f5be032752786762cebf399768f4aacee3d79b9
parent9f2dcb8bcffdda00fadacf9b4166c1ec47c95d0e (diff)
downloademacs-236e165a5a78f40f74a8c5739dc1ba9485b87ec6.tar.gz
emacs-236e165a5a78f40f74a8c5739dc1ba9485b87ec6.zip
(math-bignum-digit-length,math-bignum-digit-size,math-small-integer-size):
Don't eval when compiled.
-rw-r--r--lisp/calc/calc.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 8eebee90930..6a235e42321 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -2283,9 +2283,8 @@ See calc-keypad for details."
2283 2283
2284 2284
2285 2285
2286(defconst math-bignum-digit-length 2286(defconst math-bignum-digit-length 4
2287 (eval-when-compile 2287; (truncate (/ (log10 (/ most-positive-fixnum 2)) 2))
2288 (truncate (/ (log10 (/ most-positive-fixnum 2)) 2)))
2289 "The length of a \"digit\" in Calc bignums. 2288 "The length of a \"digit\" in Calc bignums.
2290If a big integer is of the form (bigpos N0 N1 ...), this is the 2289If a big integer is of the form (bigpos N0 N1 ...), this is the
2291length of the allowable Emacs integers N0, N1,... 2290length of the allowable Emacs integers N0, N1,...
@@ -2293,11 +2292,11 @@ The value of 2*10^(2*MATH-BIGNUM-DIGIT-LENGTH) must be less than the
2293largest Emacs integer.") 2292largest Emacs integer.")
2294 2293
2295(defconst math-bignum-digit-size 2294(defconst math-bignum-digit-size
2296 (eval-when-compile (expt 10 math-bignum-digit-length)) 2295 (expt 10 math-bignum-digit-length)
2297 "An upper bound for the size of the \"digit\"s in Calc bignums.") 2296 "An upper bound for the size of the \"digit\"s in Calc bignums.")
2298 2297
2299(defconst math-small-integer-size 2298(defconst math-small-integer-size
2300 (eval-when-compile (expt 10 (* 2 math-bignum-digit-length))) 2299 (expt math-bignum-digit-size 2)
2301 "An upper bound for the size of \"small integer\"s in Calc.") 2300 "An upper bound for the size of \"small integer\"s in Calc.")
2302 2301
2303 2302