X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=hash.h;h=66dd3d6916ea5b1386948c2d2a661d8bce59abf9;hp=d227b938a246881229ab5d5e304427da8f03cff3;hb=a15abb450459195ce72d515dc564f07f7726bf5f;hpb=1bd4cb6b62903c7785d6891d8b40a745b52c609f diff --git a/hash.h b/hash.h index d227b938..66dd3d69 100644 --- a/hash.h +++ b/hash.h @@ -141,17 +141,17 @@ static inline uint32_t jhash(const void *key, uint32_t length, uint32_t initval) /* Last block: affect all 32 bits of (c) */ /* All the case statements fall through */ switch (length) { - case 12: c += (uint32_t) k[11] << 24; - case 11: c += (uint32_t) k[10] << 16; - case 10: c += (uint32_t) k[9] << 8; - case 9: c += k[8]; - case 8: b += (uint32_t) k[7] << 24; - case 7: b += (uint32_t) k[6] << 16; - case 6: b += (uint32_t) k[5] << 8; - case 5: b += k[4]; - case 4: a += (uint32_t) k[3] << 24; - case 3: a += (uint32_t) k[2] << 16; - case 2: a += (uint32_t) k[1] << 8; + case 12: c += (uint32_t) k[11] << 24; /* fall through */ + case 11: c += (uint32_t) k[10] << 16; /* fall through */ + case 10: c += (uint32_t) k[9] << 8; /* fall through */ + case 9: c += k[8]; /* fall through */ + case 8: b += (uint32_t) k[7] << 24; /* fall through */ + case 7: b += (uint32_t) k[6] << 16; /* fall through */ + case 6: b += (uint32_t) k[5] << 8; /* fall through */ + case 5: b += k[4]; /* fall through */ + case 4: a += (uint32_t) k[3] << 24; /* fall through */ + case 3: a += (uint32_t) k[2] << 16; /* fall through */ + case 2: a += (uint32_t) k[1] << 8; /* fall through */ case 1: a += k[0]; __jhash_final(a, b, c); case 0: /* Nothing left to add */