Searched refs:weightTotal (Results 1 - 9 of 9) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c159 U32 weightTotal; local
188 weightTotal = 0;
192 weightTotal += (1 << huffWeight[n]) >> 1;
194 if (weightTotal == 0) return ERROR(corruption_detected);
197 { U32 const tableLog = BIT_highbit32(weightTotal) + 1;
202 U32 const rest = total - weightTotal;
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dentropy_common.c277 U32 weightTotal; local
306 weightTotal = 0;
310 weightTotal += (1 << huffWeight[n]) >> 1;
312 if (weightTotal == 0) return ERROR(corruption_detected);
315 { U32 const tableLog = BIT_highbit32(weightTotal) + 1;
320 U32 const rest = total - weightTotal;
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c961 U32 weightTotal; local
1007 weightTotal = 0;
1012 weightTotal += (1 << huffWeight[n]) >> 1;
1014 if (weightTotal == 0) return (size_t)-FSE_ERROR_corruptionDetected;
1017 maxBits = FSE_highbit32(weightTotal) + 1;
1022 U32 rest = total - weightTotal;
H A Dzstd_v03.c1543 U32 weightTotal; local
1586 weightTotal = 0;
1591 weightTotal += (1 << huffWeight[n]) >> 1;
1593 if (weightTotal == 0) return ERROR(corruption_detected);
1596 tableLog = BIT_highbit32(weightTotal) + 1;
1600 U32 rest = total - weightTotal;
H A Dzstd_v06.c1858 U32 weightTotal; local
1893 weightTotal = 0;
1897 weightTotal += (1 << huffWeight[n]) >> 1;
1899 if (weightTotal == 0) return ERROR(corruption_detected);
1902 { U32 const tableLog = BITv06_highbit32(weightTotal) + 1;
1907 U32 const rest = total - weightTotal;
H A Dzstd_v05.c1798 U32 weightTotal; local
1834 weightTotal = 0;
1838 weightTotal += (1 << huffWeight[n]) >> 1;
1840 if (weightTotal == 0) return ERROR(corruption_detected);
1843 tableLog = BITv05_highbit32(weightTotal) + 1;
1847 U32 rest = total - weightTotal;
H A Dzstd_v04.c1696 U32 weightTotal; local
1739 weightTotal = 0;
1744 weightTotal += (1 << huffWeight[n]) >> 1;
1746 if (weightTotal == 0) return ERROR(corruption_detected);
1749 tableLog = BIT_highbit32(weightTotal) + 1;
1753 U32 rest = total - weightTotal;
H A Dzstd_v07.c1310 U32 weightTotal; local
1345 weightTotal = 0;
1349 weightTotal += (1 << huffWeight[n]) >> 1;
1351 if (weightTotal == 0) return ERROR(corruption_detected);
1354 { U32 const tableLog = BITv07_highbit32(weightTotal) + 1;
1359 U32 const rest = total - weightTotal;
H A Dzstd_v02.c1546 U32 weightTotal; local
1589 weightTotal = 0;
1594 weightTotal += (1 << huffWeight[n]) >> 1;
1596 if (weightTotal == 0) return ERROR(corruption_detected);
1599 tableLog = BIT_highbit32(weightTotal) + 1;
1603 U32 rest = total - weightTotal;

Completed in 261 milliseconds