ralf on Fri, 19 Oct 2012 18:24:23 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Word length and number of bits in an integer


On Fri, Oct 19, 2012 at 05:58:11PM +0200, Dirk Laurie wrote:
> I need a routine for the exact smallest value B such that x>>B is zero,

f(n)=1+floor(log(n)/log(2))

should be very fast


Regards,
ralf