/[classpath]/classpath/java/math/BigInteger.java
ViewVC logotype

Diff of /classpath/java/math/BigInteger.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mark, Sun Feb 3 17:28:05 2002 UTC revision 1.16 by mark, Sun Dec 15 15:29:01 2002 UTC
# Line 1113  public class BigInteger extends Number i Line 1113  public class BigInteger extends Number i
1113          BigInteger rem = new BigInteger();          BigInteger rem = new BigInteger();
1114          BigInteger quot = new BigInteger();          BigInteger quot = new BigInteger();
1115          divide(a, b, quot, rem, FLOOR);          divide(a, b, quot, rem, FLOOR);
1116            // quot and rem may not be in canonical form. ensure
1117            rem.canonicalize();
1118            quot.canonicalize();
1119          xy = euclidInv(b, rem, quot);          xy = euclidInv(b, rem, quot);
1120        }        }
1121    
# Line 1192  public class BigInteger extends Number i Line 1195  public class BigInteger extends Number i
1195          BigInteger rem = new BigInteger();          BigInteger rem = new BigInteger();
1196          BigInteger quot = new BigInteger();          BigInteger quot = new BigInteger();
1197          divide(x, y, quot, rem, FLOOR);          divide(x, y, quot, rem, FLOOR);
1198            // quot and rem may not be in canonical form. ensure
1199            rem.canonicalize();
1200            quot.canonicalize();
1201          result = euclidInv(y, rem, quot)[swapped ? 0 : 1];          result = euclidInv(y, rem, quot)[swapped ? 0 : 1];
1202    
1203          // Result can't be negative, so make it positive by adding the          // Result can't be negative, so make it positive by adding the

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26