aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/math/BigInteger.java
AgeCommit message (Collapse)AuthorFilesLines
2000-03-24BigInteger.java (divide): Handle the special case when dividing by 1 and the ↵Warren Levy1-2/+11
high bit of the dividend is set. * java/math/BigInteger.java(divide): Handle the special case when dividing by 1 and the high bit of the dividend is set. (setShiftRight): Handle case when count == 0. From-SVN: r32724
2000-03-09* java/math/BigInteger.java(signum): Handle zero properly.Warren Levy1-1/+3
From-SVN: r32441
2000-03-07All files: Updated copyright information.Tom Tromey1-1/+1
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-02-25BigInteger.java (ival): Made private.Warren Levy1-3/+3
* java/math/BigInteger.java(ival): Made private. (words): Ditto. (neg): Ditto. From-SVN: r32143
2000-02-14MPN.java (findLowestBit): Made methods public.Warren Levy1-20/+154
* gnu/gcj/math/MPN.java(findLowestBit): Made methods public. * java/math/BigInteger.java(BigInteger(int,int,java.util.Random): New constructor. (min): Implemented. (max): Implemented. (modPow): Rewritten to not use the naive, slow, brute force approach. (isProbablePrime): Implemented. (testBit): Implemented. (flipBit): Implemented. (getLowestSetBit): Implemented. From-SVN: r31966
2000-02-11BigInteger.java (BigInteger(String, int)): New constructor.Warren Levy1-24/+400
* java/math/BigInteger.java(BigInteger(String, int)): New constructor. (BigInteger(String)): New constructor. (not): Rewritten using version from Kawa's BitOps class. (valueOf): New private methods from Kawa's BitOps class. (swappedOp): ditto. (bitOp): ditto. (setBitOp): ditto. (and): Implemented. (or): Implemented. (xor): Implemented. (andNot): Implemented. (clearBit): Implemented. (setBit): Implemented. (bitCount): Implemented. (toByteArray): Implemented. From-SVN: r31926
2000-02-04Makefile.am: Added MPN.java and BigInteger.java.Warren Levy1-0/+1683
* Makefile.am: Added MPN.java and BigInteger.java. * Makefile.in: Rebuilt. * gnu/gcj/math/MPN.java: New file. * java/math/BigInteger.java: New file. From-SVN: r31794