fix formatting

This commit is contained in:
Pavel P
2025-01-24 03:03:22 +02:00
parent f7e8fc339b
commit 0cda0100ea
+6 -9
View File
@@ -37,8 +37,7 @@ MEM_STATIC unsigned ZSTD_countTrailingZeros32(U32 val)
_BitScanForward(&r, val); _BitScanForward(&r, val);
return (unsigned)r; return (unsigned)r;
} else { } else {
/* Should not reach this code path */ __assume(0); /* Should not reach this code path */
__assume(0);
} }
# endif # endif
#elif defined(__GNUC__) && (__GNUC__ >= 4) #elif defined(__GNUC__) && (__GNUC__ >= 4)
@@ -50,7 +49,8 @@ MEM_STATIC unsigned ZSTD_countTrailingZeros32(U32 val)
#endif #endif
} }
MEM_STATIC unsigned ZSTD_countLeadingZeros32_fallback(U32 val) { MEM_STATIC unsigned ZSTD_countLeadingZeros32_fallback(U32 val)
{
assert(val != 0); assert(val != 0);
{ {
static const U32 DeBruijnClz[32] = {0, 9, 1, 10, 13, 21, 2, 29, static const U32 DeBruijnClz[32] = {0, 9, 1, 10, 13, 21, 2, 29,
@@ -78,8 +78,7 @@ MEM_STATIC unsigned ZSTD_countLeadingZeros32(U32 val)
_BitScanReverse(&r, val); _BitScanReverse(&r, val);
return (unsigned)(31 - r); return (unsigned)(31 - r);
} else { } else {
/* Should not reach this code path */ __assume(0); /* Should not reach this code path */
__assume(0);
} }
# endif # endif
#elif defined(__GNUC__) && (__GNUC__ >= 4) #elif defined(__GNUC__) && (__GNUC__ >= 4)
@@ -103,8 +102,7 @@ MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val)
_BitScanForward64(&r, val); _BitScanForward64(&r, val);
return (unsigned)r; return (unsigned)r;
} else { } else {
/* Should not reach this code path */ __assume(0); /* Should not reach this code path */
__assume(0);
} }
# endif # endif
#elif defined(__GNUC__) && (__GNUC__ >= 4) && defined(__LP64__) #elif defined(__GNUC__) && (__GNUC__ >= 4) && defined(__LP64__)
@@ -136,8 +134,7 @@ MEM_STATIC unsigned ZSTD_countLeadingZeros64(U64 val)
_BitScanReverse64(&r, val); _BitScanReverse64(&r, val);
return (unsigned)(63 - r); return (unsigned)(63 - r);
} else { } else {
/* Should not reach this code path */ __assume(0); /* Should not reach this code path */
__assume(0);
} }
# endif # endif
#elif defined(__GNUC__) && (__GNUC__ >= 4) #elif defined(__GNUC__) && (__GNUC__ >= 4)