Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/common/
Dbitstream.h96 MEM_STATIC size_t BIT_initDStream(BIT_DStream_t* bitD, const void* srcBuffer, size_t srcSize);
97 MEM_STATIC size_t BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits);
98 MEM_STATIC BIT_DStream_status BIT_reloadDStream(BIT_DStream_t* bitD);
99 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* bitD);
122 MEM_STATIC size_t BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits);
258 MEM_STATIC size_t BIT_initDStream(BIT_DStream_t* bitD, const void* srcBuffer, size_t srcSize) in BIT_initDStream() argument
260 if (srcSize < 1) { ZSTD_memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); } in BIT_initDStream()
262 bitD->start = (const char*)srcBuffer; in BIT_initDStream()
263 bitD->limitPtr = bitD->start + sizeof(bitD->bitContainer); in BIT_initDStream()
265 if (srcSize >= sizeof(bitD->bitContainer)) { /* normal case */ in BIT_initDStream()
[all …]
Dfse_decompress.c241 BIT_DStream_t bitD; in FSE_decompress_usingDTable_generic() local
246 CHECK_F(BIT_initDStream(&bitD, cSrc, cSrcSize)); in FSE_decompress_usingDTable_generic()
248 FSE_initDState(&state1, &bitD, dt); in FSE_decompress_usingDTable_generic()
249 FSE_initDState(&state2, &bitD, dt); in FSE_decompress_usingDTable_generic()
251 …ETSYMBOL(statePtr) fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD) in FSE_decompress_usingDTable_generic()
254 for ( ; (BIT_reloadDStream(&bitD)==BIT_DStream_unfinished) & (op<olimit) ; op+=4) { in FSE_decompress_usingDTable_generic()
257 if (FSE_MAX_TABLELOG*2+7 > sizeof(bitD.bitContainer)*8) /* This test must be static */ in FSE_decompress_usingDTable_generic()
258 BIT_reloadDStream(&bitD); 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()
263 { if (BIT_reloadDStream(&bitD) > BIT_DStream_unfinished) { op+=2; break; } } in FSE_decompress_usingDTable_generic()
[all …]
Dfse.h439 static void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt);
441 static unsigned char FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
498 static unsigned char FSE_decodeSymbolFast(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD);
599 MEM_STATIC void FSE_initDState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD, const FSE_DTable* dt) in FSE_initDState() argument
603 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in FSE_initDState()
604 BIT_reloadDStream(bitD); in FSE_initDState()
614 MEM_STATIC void FSE_updateState(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_updateState() argument
618 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState()
622 MEM_STATIC BYTE FSE_decodeSymbol(FSE_DState_t* DStatePtr, BIT_DStream_t* bitD) in FSE_decodeSymbol() argument
627 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol()
[all …]
/linux-6.1.9/lib/zstd/decompress/
Dhuf_decompress.c336 BIT_DStream_t bitD; in HUF_decompress1X1_usingDTable_internal_body() local
340 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X1_usingDTable_internal_body()
342 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body()
344 if (!BIT_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUF_decompress1X1_usingDTable_internal_body()
782 BIT_DStream_t bitD; in HUF_decompress1X2_usingDTable_internal_body() local
785 CHECK_F( BIT_initDStream(&bitD, cSrc, cSrcSize) ); in HUF_decompress1X2_usingDTable_internal_body()
793 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body()
797 if (!BIT_endOfDStream(&bitD)) return ERROR(corruption_detected); in HUF_decompress1X2_usingDTable_internal_body()
Dzstd_decompress_block.c900 ZSTD_initFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, const ZSTD_seqSymbol* dt) in ZSTD_initFseState() argument
904 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog); in ZSTD_initFseState()
907 BIT_reloadDStream(bitD); in ZSTD_initFseState()
912 ZSTD_updateFseState(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD) in ZSTD_updateFseState() argument
916 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseState()
921 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, ZSTD_seqSymbol const DI… in ZSTD_updateFseStateWithDInfo() argument
924 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseStateWithDInfo()