Home
last modified time | relevance | path

Searched refs:bitContainer (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/lib/zstd/common/
Dbitstream.h49 size_t bitContainer; member
83 size_t bitContainer; member
172 bitC->bitContainer = 0; in BIT_initCStream()
176 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer); in BIT_initCStream()
177 if (dstCapacity <= sizeof(bitC->bitContainer)) return ERROR(dstSize_tooSmall); in BIT_initCStream()
189 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_addBits()
190 bitC->bitContainer |= (value & BIT_mask[nbBits]) << bitC->bitPos; in BIT_addBits()
201 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_addBitsFast()
202 bitC->bitContainer |= value << bitC->bitPos; in BIT_addBitsFast()
212 assert(bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_flushBitsFast()
[all …]
Dfse_decompress.c257 if (FSE_MAX_TABLELOG*2+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic()
262 if (FSE_MAX_TABLELOG*4+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic()
267 if (FSE_MAX_TABLELOG*2+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic()
/linux-6.12.1/lib/zstd/compress/
Dhuf_compress.c751 size_t bitContainer[2]; member
769 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer[0]); in HUF_initCStream()
770 if (dstCapacity <= sizeof(bitC->bitContainer[0])) return ERROR(dstSize_tooSmall); in HUF_initCStream()
793 bitC->bitContainer[idx] >>= HUF_getNbBits(elt); in HUF_addBits()
794 bitC->bitContainer[idx] |= kFast ? HUF_getValueFast(elt) : HUF_getValue(elt); in HUF_addBits()
820 bitC->bitContainer[1] = 0; in HUF_zeroIndex1()
831 bitC->bitContainer[0] >>= (bitC->bitPos[1] & 0xFF); in HUF_mergeIndex1()
832 bitC->bitContainer[0] |= bitC->bitContainer[1]; in HUF_mergeIndex1()
850 size_t const bitContainer = bitC->bitContainer[0] >> (HUF_BITS_IN_CONTAINER - nbBits); in HUF_flushBits() local
854 assert(nbBits <= sizeof(bitC->bitContainer[0]) * 8); in HUF_flushBits()
[all …]
Dfse_compress.c623 if ((sizeof(bitC.bitContainer)*8 > FSE_MAX_TABLELOG*4+7 ) && (srcSize & 2)) { /* test bit 2 */ in FSE_compress_usingCTable_generic()
634 if (sizeof(bitC.bitContainer)*8 < FSE_MAX_TABLELOG*2+7 ) /* this test must be static */ in FSE_compress_usingCTable_generic()
639 if (sizeof(bitC.bitContainer)*8 > FSE_MAX_TABLELOG*4+7 ) { /* this test must be static */ in FSE_compress_usingCTable_generic()
/linux-6.12.1/lib/zstd/decompress/
Dhuf_decompress.c261 bit->bitContainer = MEM_readLE64(args->ip[stream]); in HUF_initRemainingDStream()
1151 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUF_decodeLastSymbolX2()
1153 if (DStream->bitsConsumed > (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX2()
1155 DStream->bitsConsumed = (sizeof(DStream->bitContainer)*8); in HUF_decodeLastSymbolX2()
1179 if ((size_t)(pEnd - p) >= sizeof(bitDPtr->bitContainer)) { in HUF_decodeStreamX2()
1191 …reloadDStream(bitDPtr) == BIT_DStream_unfinished) & (p < pEnd-(sizeof(bitDPtr->bitContainer)-1))) { in HUF_decodeStreamX2()