"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
MurmurHash2 unaligned access
To:
gameoftrees@openbsd.org
Date:
Thu, 14 Oct 2021 12:03:57 +0200

Download raw body.

Thread
I'm surprised this hasn't blown up on sparc64:

  uint32_t
  murmurhash2(const void * key, int len, uint32_t seed)
  {
  ...
    const unsigned char *data = (const unsigned char *)key;
  ...
      uint32_t k = *(uint32_t*)data;
  ...

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de