bitops: bits mask macro

Signed-off-by: Du Huanpeng <u74147@gmail.com>