deadalnix via Digitalmars-d Tue, 19 May 2015 13:06:31 -0700
Have you tried things like : (x >> bsr(x)) == 1 ?
I have no idea if this is faster or not, but worth trying.