HomeSort by: relevance | last modified time | path
    Searched refs:weightTotal (Results 1 - 8 of 8) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/common/
entropy_common.c 249 U32 weightTotal;
278 weightTotal = 0;
282 weightTotal += (1 << huffWeight[n]) >> 1;
284 if (weightTotal == 0) return ERROR(corruption_detected);
287 { U32 const tableLog = ZSTD_highbit32(weightTotal) + 1;
292 U32 const rest = total - weightTotal;
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v01.c 923 U32 weightTotal;
969 weightTotal = 0;
974 weightTotal += (1 << huffWeight[n]) >> 1;
976 if (weightTotal == 0) return (size_t)-FSE_ERROR_corruptionDetected;
979 maxBits = FSE_highbit32(weightTotal) + 1;
984 U32 rest = total - weightTotal;
zstd_v03.c 1481 U32 weightTotal;
1524 weightTotal = 0;
1529 weightTotal += (1 << huffWeight[n]) >> 1;
1531 if (weightTotal == 0) return ERROR(corruption_detected);
1534 tableLog = BIT_highbit32(weightTotal) + 1;
1538 U32 rest = total - weightTotal;
zstd_v04.c 1640 U32 weightTotal;
1683 weightTotal = 0;
1688 weightTotal += (1 << huffWeight[n]) >> 1;
1690 if (weightTotal == 0) return ERROR(corruption_detected);
1693 tableLog = BIT_highbit32(weightTotal) + 1;
1697 U32 rest = total - weightTotal;
zstd_v02.c 1485 U32 weightTotal;
1528 weightTotal = 0;
1533 weightTotal += (1 << huffWeight[n]) >> 1;
1535 if (weightTotal == 0) return ERROR(corruption_detected);
1538 tableLog = BIT_highbit32(weightTotal) + 1;
1542 U32 rest = total - weightTotal;
zstd_v05.c 1746 U32 weightTotal;
1782 weightTotal = 0;
1786 weightTotal += (1 << huffWeight[n]) >> 1;
1788 if (weightTotal == 0) return ERROR(corruption_detected);
1791 tableLog = BITv05_highbit32(weightTotal) + 1;
1795 U32 rest = total - weightTotal;
zstd_v06.c 1802 U32 weightTotal;
1837 weightTotal = 0;
1841 weightTotal += (1 << huffWeight[n]) >> 1;
1843 if (weightTotal == 0) return ERROR(corruption_detected);
1846 { U32 const tableLog = BITv06_highbit32(weightTotal) + 1;
1851 U32 const rest = total - weightTotal;
zstd_v07.c 1255 U32 weightTotal;
1290 weightTotal = 0;
1294 weightTotal += (1 << huffWeight[n]) >> 1;
1296 if (weightTotal == 0) return ERROR(corruption_detected);
1299 { U32 const tableLog = BITv07_highbit32(weightTotal) + 1;
1304 U32 const rest = total - weightTotal;

Completed in 39 milliseconds