CMUCL commit: src/code (bignum.lisp)
Raymond Toy
rtoy at common-lisp.net
Tue May 4 17:08:28 CEST 2010
Date: Tuesday, May 4, 2010 @ 11:08:28
Author: rtoy
Path: /project/cmucl/cvsroot/src/code
Modified: bignum.lisp
Fix gcd bug: (gcd 20286123923750474264166990598656
680564733841876926926749214863536422912) -> -512 instead of 512.
(From sbcl.)
-------------+
bignum.lisp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: src/code/bignum.lisp
diff -u src/code/bignum.lisp:1.50 src/code/bignum.lisp:1.51
--- src/code/bignum.lisp:1.50 Tue Apr 20 13:57:43 2010
+++ src/code/bignum.lisp Tue May 4 11:08:28 2010
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
- "$Header: /project/cmucl/cvsroot/src/code/bignum.lisp,v 1.50 2010-04-20 17:57:43 rtoy Exp $")
+ "$Header: /project/cmucl/cvsroot/src/code/bignum.lisp,v 1.51 2010-05-04 15:08:28 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
@@ -1277,6 +1277,7 @@
(rotatef u v)
(rotatef u-len v-len))
(setf u (copy-bignum u u-len))
+ (bignum-abs-buffer u u-len)
(let ((n (bignum-mod-gcd v1 u)))
(ash (bignum-mod-gcd u1 (if (fixnump n)
(make-small-bignum n)
More information about the cmucl-commit
mailing list