Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/common/
Dentropy_common.c70 int bitCount; in FSE_readNCount_body() local
93 bitCount = 4; in FSE_readNCount_body()
112 bitCount -= (int)(8 * (iend - 7 - ip)); in FSE_readNCount_body()
113 bitCount &= 31; in FSE_readNCount_body()
116 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
121 bitCount += 2 * repeats; in FSE_readNCount_body()
126 bitCount += 2; in FSE_readNCount_body()
138 if (LIKELY(ip <= iend-7) || (ip + (bitCount>>3) <= iend-4)) { in FSE_readNCount_body()
139 assert((bitCount >> 3) <= 3); /* For first condition to work */ in FSE_readNCount_body()
140 ip += bitCount>>3; in FSE_readNCount_body()
[all …]
/linux-6.1.9/lib/zstd/compress/
Dfse_compress.c202 int bitCount = 0; in FSE_writeNCount_generic() local
208 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
209 bitCount += 4; in FSE_writeNCount_generic()
223 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
233 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
234 bitCount += 2; in FSE_writeNCount_generic()
236 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
237 bitCount += 2; in FSE_writeNCount_generic()
238 if (bitCount>16) { in FSE_writeNCount_generic()
245 bitCount -= 16; in FSE_writeNCount_generic()
[all …]