[port] hopefully the last endian issue

pull/1072/head
Tim Stack 2 years ago
parent 9ff1daf032
commit 3b1233be8f

@ -83,8 +83,8 @@ void SpookyHash::Short(
case 13:
d += ((uint64)u.p8[12]) << 32;
case 12:
d += u.p32[2];
c += u.p64[0];
d += SPOOKYHASH_LITTLE_ENDIAN_32(u.p32[2]);
c += SPOOKYHASH_LITTLE_ENDIAN_64(u.p64[0]);
break;
case 11:
d += ((uint64)u.p8[10]) << 16;
@ -93,7 +93,7 @@ void SpookyHash::Short(
case 9:
d += (uint64)u.p8[8];
case 8:
c += u.p64[0];
c += SPOOKYHASH_LITTLE_ENDIAN_64(u.p64[0]);
break;
case 7:
c += ((uint64)u.p8[6]) << 48;
@ -102,7 +102,7 @@ void SpookyHash::Short(
case 5:
c += ((uint64)u.p8[4]) << 32;
case 4:
c += u.p32[0];
c += SPOOKYHASH_LITTLE_ENDIAN_32(u.p32[0]);
break;
case 3:
c += ((uint64)u.p8[2]) << 16;

Loading…
Cancel
Save