Home
last modified time | relevance | path

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

/linux-5.19.10/lib/zstd/common/
Dentropy_common.c68 U32 bitStream; in FSE_readNCount_body() local
88 bitStream = MEM_readLE32(ip); in FSE_readNCount_body()
89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
91 bitStream >>= 4; in FSE_readNCount_body()
105 int repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
115 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
116 repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
119 bitStream >>= 2 * repeats; in FSE_readNCount_body()
123 assert((bitStream & 3) < 3); in FSE_readNCount_body()
124 charnum += bitStream & 3; in FSE_readNCount_body()
[all …]
/linux-5.19.10/lib/zstd/compress/
Dfse_compress.c201 U32 bitStream = 0; in FSE_writeNCount_generic() local
208 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
223 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
226 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic()
227 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
229 bitStream>>=16; in FSE_writeNCount_generic()
233 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
236 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
241 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
242 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
[all …]