Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/include/jemalloc/internal Add fallthou...
details: https://anonhg.NetBSD.org/src/rev/8e49f23a20d5
branches: trunk
changeset: 449386:8e49f23a20d5
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 04 20:21:18 2019 +0000
description:
Add fallthough comments.
diffstat:
external/bsd/jemalloc/include/jemalloc/internal/hash.h | 27 ++++++++++--------
1 files changed, 15 insertions(+), 12 deletions(-)
diffs (45 lines):
diff -r 504ed9a14199 -r 8e49f23a20d5 external/bsd/jemalloc/include/jemalloc/internal/hash.h
--- a/external/bsd/jemalloc/include/jemalloc/internal/hash.h Mon Mar 04 20:06:50 2019 +0000
+++ b/external/bsd/jemalloc/include/jemalloc/internal/hash.h Mon Mar 04 20:21:18 2019 +0000
@@ -177,26 +177,29 @@
uint32_t k4 = 0;
switch (len & 15) {
- case 15: k4 ^= tail[14] << 16;
- case 14: k4 ^= tail[13] << 8;
+ case 15: k4 ^= tail[14] << 16; /*FALLTHROUGH*/
+ case 14: k4 ^= tail[13] << 8; /*FALLTHROUGH*/
case 13: k4 ^= tail[12] << 0;
k4 *= c4; k4 = hash_rotl_32(k4, 18); k4 *= c1; h4 ^= k4;
+ /*FALLTHROUGH*/
- case 12: k3 ^= tail[11] << 24;
- case 11: k3 ^= tail[10] << 16;
- case 10: k3 ^= tail[ 9] << 8;
+ case 12: k3 ^= tail[11] << 24; /*FALLTHROUGH*/
+ case 11: k3 ^= tail[10] << 16; /*FALLTHROUGH*/
+ case 10: k3 ^= tail[ 9] << 8; /*FALLTHROUGH*/
case 9: k3 ^= tail[ 8] << 0;
- k3 *= c3; k3 = hash_rotl_32(k3, 17); k3 *= c4; h3 ^= k3;
+ k3 *= c3; k3 = hash_rotl_32(k3, 17); k3 *= c4; h3 ^= k3;
+ /*FALLTHROUGH*/
- case 8: k2 ^= tail[ 7] << 24;
- case 7: k2 ^= tail[ 6] << 16;
- case 6: k2 ^= tail[ 5] << 8;
+ case 8: k2 ^= tail[ 7] << 24; /*FALLTHROUGH*/
+ case 7: k2 ^= tail[ 6] << 16; /*FALLTHROUGH*/
+ case 6: k2 ^= tail[ 5] << 8; /*FALLTHROUGH*/
case 5: k2 ^= tail[ 4] << 0;
k2 *= c2; k2 = hash_rotl_32(k2, 16); k2 *= c3; h2 ^= k2;
+ /*FALLTHROUGH*/
- case 4: k1 ^= tail[ 3] << 24;
- case 3: k1 ^= tail[ 2] << 16;
- case 2: k1 ^= tail[ 1] << 8;
+ case 4: k1 ^= tail[ 3] << 24; /*FALLTHROUGH*/
+ case 3: k1 ^= tail[ 2] << 16; /*FALLTHROUGH*/
+ case 2: k1 ^= tail[ 1] << 8; /*FALLTHROUGH*/
case 1: k1 ^= tail[ 0] << 0;
k1 *= c1; k1 = hash_rotl_32(k1, 15); k1 *= c2; h1 ^= k1;
}
Home |
Main Index |
Thread Index |
Old Index