At least write a comment to explain how it works, and whats the reason for using bitwise operators instead of common ones.