aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-07-08 00:14:16 +0000
committerJay Belanger2007-07-08 00:14:16 +0000
commit9066adc420e321b5d21982b0c1edc092d26902f2 (patch)
tree065cca4a097981c1b39c3207993cfaccc36b208f
parenta6a0d3cbf5a9c767d747649c8811295218fbb596 (diff)
downloademacs-9066adc420e321b5d21982b0c1edc092d26902f2.tar.gz
emacs-9066adc420e321b5d21982b0c1edc092d26902f2.zip
(math-bignum-digit-size,math-small-integer-size): Evaluate when compiled.
-rw-r--r--lisp/calc/calc.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index d85ec55d175..8eebee90930 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -2292,10 +2292,12 @@ length of the allowable Emacs integers N0, N1,...
2292The value of 2*10^(2*MATH-BIGNUM-DIGIT-LENGTH) must be less than the 2292The value of 2*10^(2*MATH-BIGNUM-DIGIT-LENGTH) must be less than the
2293largest Emacs integer.") 2293largest Emacs integer.")
2294 2294
2295(defconst math-bignum-digit-size (expt 10 math-bignum-digit-length) 2295(defconst math-bignum-digit-size
2296 (eval-when-compile (expt 10 math-bignum-digit-length))
2296 "An upper bound for the size of the \"digit\"s in Calc bignums.") 2297 "An upper bound for the size of the \"digit\"s in Calc bignums.")
2297 2298
2298(defconst math-small-integer-size (expt 10 (* 2 math-bignum-digit-length)) 2299(defconst math-small-integer-size
2300 (eval-when-compile (expt 10 (* 2 math-bignum-digit-length)))
2299 "An upper bound for the size of \"small integer\"s in Calc.") 2301 "An upper bound for the size of \"small integer\"s in Calc.")
2300 2302
2301 2303