From: Jay Belanger Date: Fri, 22 Jun 2007 06:04:45 +0000 (+0000) Subject: (math-small-factorial-table): Eval when compile. X-Git-Tag: emacs-pretest-23.0.90~12164 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=206be3d94c8bbbe9ff081636adb37d61631753b6;p=emacs.git (math-small-factorial-table): Eval when compile. --- diff --git a/lisp/calc/calc-comb.el b/lisp/calc/calc-comb.el index 46f2e5637e0..d4d2ce19528 100644 --- a/lisp/calc/calc-comb.el +++ b/lisp/calc/calc-comb.el @@ -295,18 +295,20 @@ ;;; Factorial and related functions. (defconst math-small-factorial-table - (vector 1 1 2 6 24 120 720 5040 40320 362880 - (math-read-number-simple "3628800") - (math-read-number-simple "39916800") - (math-read-number-simple "479001600") - (math-read-number-simple "6227020800") - (math-read-number-simple "87178291200") - (math-read-number-simple "1307674368000") - (math-read-number-simple "20922789888000") - (math-read-number-simple "355687428096000") - (math-read-number-simple "6402373705728000") - (math-read-number-simple "121645100408832000") - (math-read-number-simple "2432902008176640000"))) + (eval-when-compile + (list + 'vector 1 1 2 6 24 120 720 5040 40320 362880 + (math-read-number-simple "3628800") + (math-read-number-simple "39916800") + (math-read-number-simple "479001600") + (math-read-number-simple "6227020800") + (math-read-number-simple "87178291200") + (math-read-number-simple "1307674368000") + (math-read-number-simple "20922789888000") + (math-read-number-simple "355687428096000") + (math-read-number-simple "6402373705728000") + (math-read-number-simple "121645100408832000") + (math-read-number-simple "2432902008176640000")))) (defun calcFunc-fact (n) ; [I I] [F F] [Public] (let (temp)