xor = Bitwise eXclusive OR
~ = Bitwise complement (basically this reverses each bit in an integer so 0 would become 1 and vis-versa, you can get an explanation on it here - http://docs.hp.com/en/B3901-90007/ch05s04.html)
~ = Bitwise complement (basically this reverses each bit in an integer so 0 would become 1 and vis-versa, you can get an explanation on it here - http://docs.hp.com/en/B3901-90007/ch05s04.html)