8sa1-gcc/libjava/java
Raif S. Naffah 17e39e5c61 BigInteger.java: Updated notice to include years 2002 and 3.
2003-02-10  Raif S. Naffah <raif@fl.net.au>

	* java/math/BigInteger.java:
	Updated notice to include years 2002 and 3.
	Added 2 private (int) arrays with values from the HAC (Handbook of
	Applied Cryptography -A. Menezes & al): k[] that contains bit lengths
	and t[] that contains nbr. of tests --used in isProbablePrime().

	* java/math/BigInteger.java (make(long)): Merged into valueOf(long).

	* java/math/BigInteger.java (make(int[],int), add(int,int),
	add(BI,BI,int), times(BI,int), divide(long,long,BI,BI,int), gcd(BI),
	isProbablePrime(int), shift(BI,int), valueOf(String,int), neg(BI),
	bitOp(int,BI,BI), and(BI,int)): Use valueOf(long) instead of
	make(long).

	* java/math/BigInteger.java (euclidInv): Reduce number of work vars
	(euclidInv(int,int,int)): Now returns an array of 2 ints instead of 3.
	(euclidInv(BI,BI,BI)): Used to return an array of 2 BIs; now accepts 6
	BIs and returns void.
	(modInverse(BI)): Use new signatures of euclidInv().

	* java/math/BigInteger.java (isProbablePrime(int)): Use divide() with
	static small primes instead of remainder().
	Use pre-computed max nbr of trials based on bitlength of BI to test.
	Use pre-computed small primes for the trial tests instead of random
	numbers.

	* java/math/BigInteger.java (isOdd, isMinusOne, pow): Removed.
	not used.

	* java/math/BigInteger.java (format(int,StringBuffer)): Removed
	invoacation of MPN.chars_per_word().  not used.

	* java/math/BigInteger.java (gcd(int,int)): Declared 'tmp' once as
	local var and used where needed.

	* java/math/BigInteger.java (modPow(BI,BI)): Fixed spelling.
	Combined declaration with initialisation of locals.
	Removed unused var.

	* java/math/BigInteger.java: Style changes
	(pow(int)): Removed 'else' keyword.
	(toString(int)): idem.
	(doubleValue()): idem.
	(bitLength()): idem.
	(equals(Object)): Use static methods name in same class w/o prepending
	class name.
	(doubleValue()): idem.
	(setNegative(BI)): idem.
	(negate()): idem.
	(and(BI,int)): idem.
	(and(BI)): idem.
	(gcd(BI)): idem.
	(byteArrayToIntArray()): Removed casting to (int). this is
	std. behaviour.
	(canonicalize()): idem.
	(alloc(int)): Always instantiate a new BI.

From-SVN: r62656
2003-02-10 23:45:31 +00:00
..
applet AppletContext.java: Fix typo and remove redundant modifiers. 2002-11-14 20:35:27 +00:00
awt Window.java (Window(Window,GraphicsConfiguration)): Don't try to find graphics configuration. 2003-01-31 17:54:14 +00:00
beans Stephen Crawley <crawley@dstc.edu.au> 2003-02-07 20:19:53 +00:00
io PipedOutputStream.java (flush): Declare as throwing IOException. 2003-02-04 21:07:15 +00:00
lang natRuntime.cc (java::lang::Runtime::_load)): Take care of the fact that on Win32... 2003-02-03 21:23:59 +00:00
math BigInteger.java: Updated notice to include years 2002 and 3. 2003-02-10 23:45:31 +00:00
net SocketImpl.java (toString): Don't explicitly call toString() on possible null address. 2003-01-16 21:37:56 +00:00
nio 2002-11-29 Michael Koch <konqueror@gmx.de> 2002-11-29 12:32:17 +00:00
rmi UnicastServerRef.java (unexportObject): Don't throw RemoteException. 2003-01-03 22:57:25 +00:00
security re PR libgcj/7416 (java.security startup refs "GNU libgcj.security") 2002-12-31 22:50:10 +00:00
sql Timestamp.java (compareTo(Object)): New method. 2003-02-10 19:56:12 +00:00
text Externalizable.java, [...]: New versions from Classpath. 2002-11-10 22:06:49 +00:00
util JarFile.java (JarFile(String, boolean)): Read manifest when verify is true. 2003-02-07 21:33:05 +00:00