Home
last modified time | relevance | path

Searched refs:bitC (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/lib/zstd/common/
Dbitstream.h56 MEM_STATIC size_t BIT_initCStream(BIT_CStream_t* bitC, void* dstBuffer, size_t dstCapacity);
57 MEM_STATIC void BIT_addBits(BIT_CStream_t* bitC, size_t value, unsigned nbBits);
58 MEM_STATIC void BIT_flushBits(BIT_CStream_t* bitC);
59 MEM_STATIC size_t BIT_closeCStream(BIT_CStream_t* bitC);
116 MEM_STATIC void BIT_addBitsFast(BIT_CStream_t* bitC, size_t value, unsigned nbBits);
119 MEM_STATIC void BIT_flushBitsFast(BIT_CStream_t* bitC);
169 MEM_STATIC size_t BIT_initCStream(BIT_CStream_t* bitC, in BIT_initCStream() argument
172 bitC->bitContainer = 0; in BIT_initCStream()
173 bitC->bitPos = 0; in BIT_initCStream()
174 bitC->startPtr = (char*)startPtr; in BIT_initCStream()
[all …]
Dfse.h382 static void FSE_encodeSymbol(BIT_CStream_t* bitC, FSE_CState_t* CStatePtr, unsigned symbol);
384 static void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* CStatePtr);
536 MEM_STATIC void FSE_encodeSymbol(BIT_CStream_t* bitC, FSE_CState_t* statePtr, unsigned symbol) in FSE_encodeSymbol() argument
541 BIT_addBits(bitC, statePtr->value, nbBitsOut); in FSE_encodeSymbol()
545 MEM_STATIC void FSE_flushCState(BIT_CStream_t* bitC, const FSE_CState_t* statePtr) in FSE_flushCState() argument
547 BIT_addBits(bitC, statePtr->value, statePtr->stateLog); in FSE_flushCState()
548 BIT_flushBits(bitC); in FSE_flushCState()
/linux-6.1.9/lib/zstd/compress/
Dfse_compress.c558 BIT_CStream_t bitC; in FSE_compress_usingCTable_generic() local
563 { size_t const initError = BIT_initCStream(&bitC, dst, dstSize); in FSE_compress_usingCTable_generic()
571 FSE_encodeSymbol(&bitC, &CState1, *--ip); in FSE_compress_usingCTable_generic()
572 FSE_FLUSHBITS(&bitC); in FSE_compress_usingCTable_generic()
580 if ((sizeof(bitC.bitContainer)*8 > FSE_MAX_TABLELOG*4+7 ) && (srcSize & 2)) { /* test bit 2 */ in FSE_compress_usingCTable_generic()
581 FSE_encodeSymbol(&bitC, &CState2, *--ip); in FSE_compress_usingCTable_generic()
582 FSE_encodeSymbol(&bitC, &CState1, *--ip); in FSE_compress_usingCTable_generic()
583 FSE_FLUSHBITS(&bitC); in FSE_compress_usingCTable_generic()
589 FSE_encodeSymbol(&bitC, &CState2, *--ip); in FSE_compress_usingCTable_generic()
591 if (sizeof(bitC.bitContainer)*8 < FSE_MAX_TABLELOG*2+7 ) /* this test must be static */ in FSE_compress_usingCTable_generic()
[all …]
Dhuf_compress.c586 BIT_CStream_t bitC; in HUF_compress1X_usingCTable_internal_body() local
590 { size_t const initErr = BIT_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body()
597 HUF_encodeSymbol(&bitC, ip[n+ 2], CTable); in HUF_compress1X_usingCTable_internal_body()
598 HUF_FLUSHBITS_2(&bitC); in HUF_compress1X_usingCTable_internal_body()
601 HUF_encodeSymbol(&bitC, ip[n+ 1], CTable); in HUF_compress1X_usingCTable_internal_body()
602 HUF_FLUSHBITS_1(&bitC); in HUF_compress1X_usingCTable_internal_body()
605 HUF_encodeSymbol(&bitC, ip[n+ 0], CTable); in HUF_compress1X_usingCTable_internal_body()
606 HUF_FLUSHBITS(&bitC); in HUF_compress1X_usingCTable_internal_body()
613 HUF_encodeSymbol(&bitC, ip[n- 1], CTable); in HUF_compress1X_usingCTable_internal_body()
614 HUF_FLUSHBITS_1(&bitC); in HUF_compress1X_usingCTable_internal_body()
[all …]