Re: [mpir-devel] Question about mpz_popcount

2011-05-04 Thread Bill Hart
Another Windows bug. Thanks for pointing these out Chris! It should be changed to return the largest mp_bitcnt_t. Bill. On 4 May 2011 03:24, Chris wrote: > In the documentation for mpz_popcount this is stated: > > If op < 0, the number of 1s is infinite, and the return value is ULONG_MAX, > the

[mpir-devel] Question about mpz_popcount

2011-05-03 Thread Chris
In the documentation for mpz_popcount this is stated: If op < 0, the number of 1s is infinite, and the return value is ULONG_MAX, the largest possible mp_bitcnt_t. Now I built an x64 system amd mp_bitcnt_t is a 64bit number but ULONG_MAX is a 32bit number. I'm wondering what will be the result