Popcount tells how many nonzero bits the number contains i twos complement. Since negative numbers contain an infinite number of nonzerobits, popcount() is not defined for negative numbers and simply return -1.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-01-26 23:28: Subject: INT_TYPE = INT64
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