On May 4, 10:12 am, Bill Hart <goodwillh...@googlemail.com> wrote:
> 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 <chrisjohnsaund...@shaw.ca> 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 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 if op < 0 on my
> > system?
>
> > Regards
> > Chris Saunders
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mpir-devel" group.
> > To post to this group, send email to mpir-devel@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mpir-devel+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/mpir-devel?hl=en.

I have just added a define for __GMP_BITCNT_MAX and adjusted the
mpz_popcount code to use it.

     Brian

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to