Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
236e165a
Commit
236e165a
authored
Jul 08, 2007
by
Jay Belanger
Browse files
(math-bignum-digit-length,math-bignum-digit-size,math-small-integer-size):
Don't eval when compiled.
parent
9f2dcb8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lisp/calc/calc.el
lisp/calc/calc.el
+4
-5
No files found.
lisp/calc/calc.el
View file @
236e165a
...
...
@@ -2283,9 +2283,8 @@ See calc-keypad for details."
(
defconst
math-bignum-digit-length
(
eval-when-compile
(
truncate
(
/
(
log10
(
/
most-positive-fixnum
2
))
2
)))
(
defconst
math-bignum-digit-length
4
; (truncate (/ (log10 (/ most-positive-fixnum 2)) 2))
"The length of a \"digit\" in Calc bignums.
If a big integer is of the form (bigpos N0 N1 ...), this is the
length 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
largest Emacs integer."
)
(
defconst
math-bignum-digit-size
(
eval-when-compile
(
expt
10
math-bignum-digit-length
)
)
(
expt
10
math-bignum-digit-length
)
"An upper bound for the size of the \"digit\"s in Calc bignums."
)
(
defconst
math-small-integer-size
(
e
val-when-compile
(
expt
10
(
*
2
math-bignum-digit-
length
))
)
(
e
xpt
math-bignum-digit-
size
2
)
"An upper bound for the size of \"small integer\"s in Calc."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment