On Sunday, 30 March 2014 at 23:05:57 UTC, safety0ff wrote:
I find myself often reimplementing ilog2, isqrt, isPowerOf2,
isPowerOf2 { x => (x && !(x & (x-1))) }
On Sunday, 30 March 2014 at 23:05:57 UTC, safety0ff wrote:
I find myself often reimplementing ilog2, isqrt, isPowerOf2,
isPowerOf2 { x => (x && !(x & (x-1))) }