Skip to content

Instantly share code, notes, and snippets.

View jborg's full-sized avatar

Jonas Borgström jborg

  • Stockholm, Sweden
View GitHub Profile
@jborg
jborg / _hashindex.c.patch
Created May 23, 2015 20:58
hashindex 32 bit alignment fix
diff --git a/attic/_hashindex.c b/attic/_hashindex.c
index 3d311dd..4d117f1 100644
--- a/attic/_hashindex.c
+++ b/attic/_hashindex.c
@@ -18,6 +18,9 @@
#error Unknown byte order
#endif
+/* Adjustment to make sure buckets locations are 32 bit aligned */
+#define ALIGNMENT_ADJUSTMENT 2