+ if (len >= sizeof(uint64_t)) {
+ hval ^= (uint64_t) *ptr++;
+ len -= sizeof(uint64_t);
+ continue;
+ } else {
+ const uint8_t *ptr8 = (const uint8_t *) ptr;
+ uint64_t val = 0;
+ int i;
+
+ for (i = 0; i < len; i++) {
+ val <<= 8;
+ val |= (uint8_t) *ptr8++;
+ }
+ hval ^= val;
+ break;
+ }