Home
last modified time | relevance | path

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

/u-boot/lib/zstd/
A Dbitstream.h75 unsigned bitsConsumed; member
241 bitD->bitsConsumed = lastByte ? 8 - BIT_highbit32(lastByte) : 0; in BIT_initDStream()
245 bitD->bitsConsumed += (U32)(sizeof(bitD->bitContainer) - srcSize) * 8; in BIT_initDStream()
267 …return ((bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> 1) >> ((bitMask - nbBits) & bitM… in BIT_lookBits()
275 …return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (((bitMask + 1) - nbBits) & bitMa… in BIT_lookBitsFast()
278 ZSTD_STATIC void BIT_skipBits(BIT_DStream_t *bitD, U32 nbBits) { bitD->bitsConsumed += nbBits; } in BIT_skipBits()
312 bitD->ptr -= bitD->bitsConsumed >> 3; in BIT_reloadDStream()
313 bitD->bitsConsumed &= 7; in BIT_reloadDStream()
318 if (bitD->bitsConsumed < sizeof(bitD->bitContainer) * 8) in BIT_reloadDStream()
323 U32 nbBytes = bitD->bitsConsumed >> 3; in BIT_reloadDStream()
[all …]
A Dhuf_decompress.c580 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer) * 8)) { in HUF_decodeLastSymbolX4()
582 if (DStream->bitsConsumed > (sizeof(DStream->bitContainer) * 8)) in HUF_decodeLastSymbolX4()
584 DStream->bitsConsumed = (sizeof(DStream->bitContainer) * 8); in HUF_decodeLastSymbolX4()

Completed in 5 milliseconds