Skip to content

Commit e8ec049

Browse files
JoePerchestorvalds
authored andcommitted
lib/lz4/lz4_decompress.c: document deliberate use of `&'
This operation was intentional, but tools such as smatch will warn that it might not have been. Signed-off-by: Andrew Morton <[email protected]> Cc: Yann Collet <[email protected]> Cc: Vasily Averin <[email protected]> Cc: Gao Xiang <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3021e69 commit e8ec049

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/lz4/lz4_decompress.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ static FORCE_INLINE int LZ4_decompress_generic(
141141
* space in the output for those 18 bytes earlier, upon
142142
* entering the shortcut (in other words, there is a
143143
* combined check for both stages).
144+
*
145+
* The & in the likely() below is intentionally not && so that
146+
* some compilers can produce better parallelized runtime code
144147
*/
145148
if ((endOnInput ? length != RUN_MASK : length <= 8)
146149
/*

0 commit comments

Comments
 (0)