Using GMP for BigIntegers.

Mark J. Roberts mjr@statesmean.com
Mon Jan 29 20:16:00 GMT 2001


I have some problems with the BigInteger support in GCJ.

It's broken, and it's slow. In one test case:

GMP:  14 milliseconds per modPow. // compiled with GCJ using CNI
IBM:  38 milliseconds per modPow.
GCJ: 212 milliseconds per modPow. // wrong result due to bug

So, is GMP in your future? I'm probably going to add GMP support to my
libjava anyway, so I can probably provide a rough implementation to use as
a starting point really soon. If you're interested...


-- 
Mark Roberts
mjr@statesmean.com



More information about the Java mailing list