[Routine] Tricky bit operation