I think the operation went rather successfull. I now seem to have a working Pike with 64-bit INT_TYPE. =^.^=
I only have 9 errors left in the testsuite now, of which about half is really obscure (Image issues) and the others just a little obscure (mpz).
What is ->popcount()?
| /home/mirar/pike/src/modules/Gmp/testsuite.in:222: Test 3395 (shift 2) failed. | 1: mixed a() { return Gmp.mpz(-1)->popcount(); } | 2: mixed b() { return -1; } | 3: | | o->a(): 4294967295 | o->b(): -1
/ Mirar
Previous text:
2003-01-26 17:28: Subject: INT_TYPE = INT64
There are a bunch of other funny errors, too:
| > sprintf("%x",281474976710656); | Result: "%"
And I suspect there is some bit rot in the Gmp.mpz routine:
| > Gmp.mpz(100000000000000); | (22) Result: 100000000000000 // correct INT64 -> mpz | > Gmp.mpz(1000000000000000); | (23) Result: 155575120199680 // duh? | > Gmp.mpz(10000000000000000); | (24) Result: 148376402329600 | > Gmp.mpz(100000000000000000); | (25) Result: 76389223628800 | > Gmp.mpz(1000000000000000000); | (26) Result: 200942316421120 | > Gmp.mpz(10000000000000000000); // mpz -> mpz again | (27) Result: 10000000000000000000
/ Mirar