Skip to content

Instantly share code, notes, and snippets.

@pervognsen
Created February 21, 2019 05: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 pervognsen/87732cdd69a81f4b3ebc6828d75cfb86 to your computer and use it in GitHub Desktop.
Save pervognsen/87732cdd69a81f4b3ebc6828d75cfb86 to your computer and use it in GitHub Desktop.
for (i := h) {
i &= index.mask;
if (slot := &index.slots[i]; slot.i == HASH_EMPTY || (slot.h == h && memcmp(a + slot.i*stride, x, size) == 0)) {
return slot;
}
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment