summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-14 09:09:11 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-14 09:09:11 (GMT)
commitee98d9378fe83c442ee8e66f8eddc222add4880c (patch)
treedb5274620183a449a9fa9b609e8a881ce49af2c8 /Utilities
parenteb8db99596522060db081ea1b824a0302df3551d (diff)
downloadCMake-ee98d9378fe83c442ee8e66f8eddc222add4880c.zip
CMake-ee98d9378fe83c442ee8e66f8eddc222add4880c.tar.gz
CMake-ee98d9378fe83c442ee8e66f8eddc222add4880c.tar.bz2
zstd: Fix ZSTD_VecMask_next compilation of software ctz implementation
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmzstd/lib/compress/zstd_lazy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/cmzstd/lib/compress/zstd_lazy.c b/Utilities/cmzstd/lib/compress/zstd_lazy.c
index 3d523e8..6ce897d 100644
--- a/Utilities/cmzstd/lib/compress/zstd_lazy.c
+++ b/Utilities/cmzstd/lib/compress/zstd_lazy.c
@@ -1081,7 +1081,8 @@ static U32 ZSTD_VecMask_next(ZSTD_VecMask val) {
0, 1, 28, 2, 29, 14, 24, 3, 30, 22, 20, 15, 25, 17, 4, 8,
31, 27, 13, 23, 21, 19, 16, 7, 26, 12, 18, 6, 11, 5, 10, 9
};
- return multiplyDeBruijnBitPosition[((U32)((v & -(int)v) * 0x077CB531U)) >> 27];
+ return multiplyDeBruijnBitPosition[((U32)((val & -(int)val) * 0x077CB531U)) >> 27];
+
# endif
}