add bit manipulation.

Signed-off-by: WanBin <ouyangwanbin@gmail.com>