- while (n >= sizeof tmp) {
- memcpy(tmp, p, sizeof tmp);
- a += tmp[0];
- b += tmp[1];
- c += tmp[2];
- HASH_MIX(a, b, c);
- n -= sizeof tmp;
- p += sizeof tmp;
+ while (n >= 12) {
+ a += get_unaligned_u32((uint32_t *) p);
+ b += get_unaligned_u32((uint32_t *) (p + 4));
+ c += get_unaligned_u32((uint32_t *) (p + 8));
+ hash_mix(&a, &b, &c);
+ n -= 12;
+ p += 12;