Mark J. Roberts, <mjr at statesmean.com>, writes:
> You can find BigInteger.java at
>
> CHK at J9WTpJLqAfc9Y7yaj1V1JHJdeEQOAwE,qba6avE3DyH6qGsgYIZS1A
>
> or http://24.131.185.22/BigInteger.java. Check out the big scary private
> divide method.

Actually that divide method doesn't even do the actual divide.  It just
formats the data for the call to MPN.divide on line 795.  Presumably
this is a call to an external MPI library.

Are you able to edit this file and rerun your test case?  If so, if
you could print out the values of the xwords, xlen, ywords and ylen
variables before and after the call to MPN.divide, I can check and see
if the problem is in that function, or before or after it.  Print them
out in hex and let me know what you see using those values that make
it fail.

Use code something like:

    System.out.println("xlen = " + xlen);
    System.out.print("xwords =");
    for( int i=0; i<xwords.length; i++ )
        System.out.print(" " + Integer.toString(xwords[i],16));
    System.out.println("");
    System.out.println("ylen = " + ylen);
    System.out.print("ywords =");
    for( int i=0; i<ywords.length; i++ )
        System.out.print(" " + Integer.toString(ywords[i],16));
    System.out.println("");

(I haven't checked this code for syntax errors but it should be
approximately correct.)

Hal

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://www.uprizer.com/mailman/listinfo/devl

Reply via email to