Since "(x & (x - 1)) == 0 && x != 0" came up again, I give you: "(x ^ -x) < -x" (with an unsigned comparison)
@harold Oh! TIL!
@harold ...and we also have bit_gather(x,x)==1 for archs with that (as a general aside)