bitwise operation hm2