On Sunday, 2 October 2016 at 03:05:37 UTC, Manu wrote: > Unsigned case is: > return (x & -x) > (x - 1); > > Wouldn't this be better: > return (sz & (sz-1)) == 0; > https://forum.dlang.org/post/nfkaag$2d6u$1@digitalmars.com