Home
last modified time | relevance | path

Searched refs:bitCount (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/lib/zstd/common/
Dentropy_common.c69 int bitCount; in FSE_readNCount_body() local
92 bitCount = 4; in FSE_readNCount_body()
111 bitCount -= (int)(8 * (iend - 7 - ip)); in FSE_readNCount_body()
112 bitCount &= 31; in FSE_readNCount_body()
115 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
120 bitCount += 2 * repeats; in FSE_readNCount_body()
125 bitCount += 2; in FSE_readNCount_body()
137 if (LIKELY(ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) { in FSE_readNCount_body()
138 assert((bitCount >> 3) <= 3); /* For first condition to work */ in FSE_readNCount_body()
139 ip += bitCount>>3; in FSE_readNCount_body()
[all …]
/linux-6.12.1/lib/zstd/compress/
Dfse_compress.c245 int bitCount = 0; in FSE_writeNCount_generic() local
251 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
252 bitCount += 4; in FSE_writeNCount_generic()
266 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
276 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
277 bitCount += 2; in FSE_writeNCount_generic()
279 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
280 bitCount += 2; in FSE_writeNCount_generic()
281 if (bitCount>16) { in FSE_writeNCount_generic()
288 bitCount -= 16; in FSE_writeNCount_generic()
[all …]