Skip to content

Instantly share code, notes, and snippets.

@NoNews
Created June 7, 2020 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NoNews/5d083aa2ea303c7da318ba7ba5691cee to your computer and use it in GitHub Desktop.
Save NoNews/5d083aa2ea303c7da318ba7ba5691cee to your computer and use it in GitHub Desktop.
...
index = ~index; //~-1 == 0
...
mHashes[index] = hash;
mArray[index<<1] = key; //Xor 0 == 0
mArray[(index<<1)+1] = value; //Xor 0 + 1 == 1
mSize++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment