Lines Matching defs:countLit
592 U32* countLit, U32* offsetcodeCount, U32* matchlengthCount, U32* litlengthCount, U32* repOffsets,
612 countLit[*bytePtr]++;
670 * rewrite `countLit` to contain a mostly flat but still compressible distribution of literals.
673 static void ZDICT_flatLit(U32* countLit)
676 for (u=1; u<256; u++) countLit[u] = 2;
677 countLit[0] = 4;
678 countLit[253] = 1;
679 countLit[254] = 1;
689 U32 countLit[256];
720 for (u=0; u<256; u++) countLit[u] = 1; /* any character must be described */
739 countLit, offcodeCount, matchLengthCount, litLengthCount, repOffset,
746 { size_t maxNbBits = HUF_buildCTable (hufTable, countLit, 255, huffLog);
754 ZDICT_flatLit(countLit); /* replace distribution by a fake "mostly flat but still compressible" distribution, that HUF_writeCTable() can encode */
755 maxNbBits = HUF_buildCTable (hufTable, countLit, 255, huffLog);