This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Using GMP for BigIntegers.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]