Skip to content

Instantly share code, notes, and snippets.

@pwr22
Created December 12, 2014 09:10
Show Gist options
  • Save pwr22/a08597e475d1aa44cd96 to your computer and use it in GitHub Desktop.
Save pwr22/a08597e475d1aa44cd96 to your computer and use it in GitHub Desktop.
hash_get
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