Home
last modified time | relevance | path

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

/linux/lib/zstd/common/
H A Dentropy_common.c52 U32 bitStream; in FSE_readNCount_body() local
72 bitStream = MEM_readLE32(ip); in FSE_readNCount_body()
73 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
75 bitStream >>= 4; in FSE_readNCount_body()
89 int repeats = ZSTD_countTrailingZeros32(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
99 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
100 repeats = ZSTD_countTrailingZeros32(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
103 bitStream >>= 2 * repeats; in FSE_readNCount_body()
107 assert((bitStream & 3) < 3); in FSE_readNCount_body()
108 charnum += bitStream & 3; in FSE_readNCount_body()
[all …]
/linux/lib/zstd/compress/
H A Dfse_compress.c246 U32 bitStream = 0; in FSE_writeNCount_generic() local
253 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
268 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
271 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic()
272 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
274 bitStream>>=16; in FSE_writeNCount_generic()
278 bitStream += 3U << bitCount; in FSE_writeNCount_generic()
281 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
286 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
287 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
[all …]