shr1 = x >> 1
t = x ^ shr1
# bit is different from left neighbor. Remains to check it is 1 and right neighbor is 0.
e = t & (t - shr1)
shr1 = x >> 1
t = x ^ shr1
# bit is different from left neighbor. Remains to check it is 1 and right neighbor is 0.
e = t & (t - shr1)