Created
December 12, 2014 09:10
-
-
Save pwr22/a08597e475d1aa44cd96 to your computer and use it in GitHub Desktop.
hash_get
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int (**hget(int (**t)[2], int k))[2] { | |
int (**t2)[2] = t; | |
for (int h = k & (SIZE - 1); **t2 && ***t2 != k; h = (h + 1) & (SIZE - 1), t2 = t + h); | |
return t2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment