Re: roundup_pow_of_two() may not handle 64-bit integers

2014-05-15 Thread Brian Norris
On Thu, May 15, 2014 at 04:03:09PM +0100, David Howells wrote: > Brian Norris wrote: > > I'm looking to use roundup_pow_of_two() (actually, order_base_2()) > > from , but it seems that it only supports 64-bit integers > > if your toolchain uses a 64-bit 'unsigned long' type. This is strange, > > c

Re: roundup_pow_of_two() may not handle 64-bit integers

2014-05-15 Thread David Howells
Brian Norris wrote: > I'm looking to use roundup_pow_of_two() (actually, order_base_2()) > from , but it seems that it only supports 64-bit integers > if your toolchain uses a 64-bit 'unsigned long' type. This is strange, > considering that ilog2() is explicitly designed for 32-bit or 64-bit > co

roundup_pow_of_two() may not handle 64-bit integers

2014-05-14 Thread Brian Norris
Hi, I'm looking to use roundup_pow_of_two() (actually, order_base_2()) from , but it seems that it only supports 64-bit integers if your toolchain uses a 64-bit 'unsigned long' type. This is strange, considering that ilog2() is explicitly designed for 32-bit or 64-bit compatibility. I also note t