MCPcopy Create free account
hub / github.com/F-Stack/f-stack / FSE_initCState

Function FSE_initCState

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:1956–1965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1954} FSE_symbolCompressionTransform; /* total 8 bytes */
1955
1956MEM_STATIC void FSE_initCState(FSE_CState_t* statePtr, const FSE_CTable* ct)
1957{
1958 const void* ptr = ct;
1959 const U16* u16ptr = (const U16*) ptr;
1960 const U32 tableLog = MEM_read16(ptr);
1961 statePtr->value = (ptrdiff_t)1<<tableLog;
1962 statePtr->stateTable = u16ptr+2;
1963 statePtr->symbolTT = ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1);
1964 statePtr->stateLog = tableLog;
1965}
1966
1967
1968/*! FSE_initCState2() :

Callers 3

FSE_initCState2Function · 0.70
ZSTD_fseBitCostFunction · 0.70
ZSTD_rescaleFreqsFunction · 0.70

Calls 1

MEM_read16Function · 0.70

Tested by

no test coverage detected