zstd: Fix ZSTD_VecMask_next compilation of software ctz implementation

This commit is contained in:
Brad King
2021-10-14 05:09:11 -04:00
parent eb8db99596
commit ee98d9378f

View File

@@ -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
}