Changeset 5586


Ignore:
Timestamp:
Dec 4, 2006, 11:43:01 AM (18 years ago)
Author:
Gary Byers
Message:

Bugs in GCD-2. Long-standing bugs in GCD-2 ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-0/l0-numbers.lisp

    r5339 r5586  
    17571757           (if (eql n1 most-negative-fixnum)
    17581758             (if (eql n2 most-negative-fixnum)
    1759                1
     1759               (- most-negative-fixnum)
    17601760               (bignum-fixnum-gcd (- most-negative-fixnum) (abs n2)))
    17611761             (if (eql n2 most-negative-fixnum)
     
    17731773         (number-case n2
    17741774           (fixnum
    1775             (bignum-fixnum-gcd (bignum-abs n1)(fixnum-abs n2)))
     1775            (if (eql n2 most-negative-fixnum)
     1776              (%bignum-bignum-gcd (bignum-abs n1)(fixnum-abs n2))
     1777              (bignum-fixnum-gcd (bignum-abs n1)(fixnum-abs n2))))
    17761778           (bignum (%bignum-bignum-gcd n1 n2))))))))
    17771779
Note: See TracChangeset for help on using the changeset viewer.