diff options
author | warrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-14 10:23:29 +0000 |
---|---|---|
committer | warrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-14 10:23:29 +0000 |
commit | 4ed63286e3e67ba87df24b55ddac81dbb6168daf (patch) | |
tree | 25b7abd6d60029d846218b9f467ae92b950c211c /libjava/gnu | |
parent | a7b0c5ffa1a2fcc2b1098c0e72242c312929d637 (diff) | |
download | gcc-4ed63286e3e67ba87df24b55ddac81dbb6168daf.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/math/MPN.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/gcj/math/MPN.java b/libjava/gnu/gcj/math/MPN.java index 5bbabfdc3fe..6ae60f26a22 100644 --- a/libjava/gnu/gcj/math/MPN.java +++ b/libjava/gnu/gcj/math/MPN.java @@ -571,7 +571,7 @@ public class MPN /** Return least i such that word&(1<<i). Assumes word!=0. */ - static int findLowestBit (int word) + public static int findLowestBit (int word) { int i = 0; while ((word & 0xF) == 0) @@ -591,7 +591,7 @@ public class MPN /** Return least i such that words & (1<<i). Assumes there is such an i. */ - static int findLowestBit (int[] words) + public static int findLowestBit (int[] words) { for (int i = 0; ; i++) { |