This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Using GMP for BigIntegers.
- To: <java at gcc dot gnu dot org>
- Subject: Using GMP for BigIntegers.
- From: "Mark J. Roberts" <mjr at statesmean dot com>
- Date: Mon, 29 Jan 2001 22:17:55 -0500 (EST)
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