I\'ve seen the tilde operator used in the ELF hashing algorithm, and I\'m curious what it does. (The code is from Eternally Confused.)
unsigned elf_hash ( vo
The ~ operator is bitwise NOT, it inverts the bits in a binary number:
~
NOT 011100 = 100011