[UPDATED PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2009-06-09 Thread Alan Eliasen
Attached is an UPDATED patch for bug 4837946, (and others) for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class (which also improves the performance of large numbers BigDecimal, etc.) This patch slightly modifies the patch I sent before

[UPDATED PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2009-06-08 Thread Alan Eliasen
Attached is an UPDATED patch for bug 4837946, (and others) for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4837946 This also affects other bugs: 4228681: Some BigInteger ope

[UPDATED PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2008-04-04 Thread Alan Eliasen
Attached is an UPDATED patch for bug 4837946, for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4837946 This patch supersedes all previous patches, and contains all of their c

[UPDATED PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2008-03-28 Thread Alan Eliasen
Attached is an UPDATED patch for bug 4837946, for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4837946 The difference between this patch and the one posted earlier are: * T

Re: [PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2008-02-20 Thread Alan Eliasen
Attached is a *revised* patch for bug 4837946, for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4837946 It only differs from my patch posted yesterday in one respect--the new meth

Re: [PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2008-02-20 Thread Alan Eliasen
Anonymous member wrote: > Out of curiousity, how does the Java implementation compare to GMP in > terms of speed? (Note: These numbers apply to the *revised* patch that I'll be posting in a few minutes.) It depends on the size of the numbers. When I run the regression tests that I wrote,

[PATCH] 4837946: Implement Karatsuba multiplication algorithm in BigInteger

2008-02-19 Thread Alan Eliasen
Attached is a patch for bug 4837946, for implementing asymptotically faster algorithms for multiplication of large numbers in the BigInteger class: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4837946 This patch implements Karatsuba multiplication and Karatsuba squaring for numbers a