From: Christian Weisgerber Subject: Re: MurmurHash2 unaligned access To: gameoftrees@openbsd.org Date: Thu, 14 Oct 2021 19:02:37 +0200 Stefan Sperling: > Just out of curiousity, can you produce a short > program that calls murmurhash2 and triggers an alignment fault on sparc64, > octeon, or similar platforms? I don't have a strict alignment arch at hand, but this should do it: #include #include #include #define SIZE 10 int main(void) { char a[SIZE+4]; int i; for (i = 0; i < 4; i++) { printf("%d\n", i); fflush(stdout); murmurhash2(a+i, SIZE, 0); } return 0; } -- Christian "naddy" Weisgerber naddy@mips.inka.de