Function report |
Source Code:lib\zstd\huf_decompress.c |
Create Date:2022-07-28 07:06:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:HUF_readDTableX4_wksp
Proto:size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, size_t workspaceSize)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
HUF_DTable * | DTable | |
const void * | src | |
size_t | srcSize | |
void * | workspace | |
size_t | workspaceSize |
485 | dtd = HUF_getDTableDesc(DTable) |
486 | maxTableLog = maxTableLog |
497 | spaceUsed32 = 0 |
501 | rankVal = workspace + spaceUsed32 |
502 | spaceUsed32 += sizeof(rankValCol_t) * max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG >> 2 |
503 | rankStats = workspace + spaceUsed32 |
504 | spaceUsed32 += max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG + 1 |
505 | rankStart0 = workspace + spaceUsed32 |
506 | spaceUsed32 += max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG + 2 |
507 | sortedSymbol = workspace + spaceUsed32 |
508 | spaceUsed32 += @a is a power of 2 value (sizeof(sortedSymbol_t) * (HUF_SYMBOLVALUE_MAX + 1), sizeof(U32)) >> 2 |
509 | weightList = workspace + spaceUsed32 |
510 | spaceUsed32 += @a is a power of 2 value (HUF_SYMBOLVALUE_MAX + 1, sizeof(U32)) >> 2 |
512 | If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
514 | workspace = workspace + spaceUsed32 |
515 | workspaceSize -= spaceUsed32 << 2 |
517 | rankStart = rankStart0 + 1 |
518 | memset(rankStats, 0, sizeof(U32) * (2 * max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG + 2 + 1)) |
526 | If HUF_isError(iSize) Then Return iSize |
530 | If tableLog > maxTableLog Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
539 | nextRankStart = 0 |
545 | rankStart[0] = nextRankStart |
546 | sizeOfSort = nextRankStart |
558 | rankStart[0] = 0 |
565 | rescale = maxTableLog - tableLog - 1 |
566 | nextRankVal = 0 |
577 | When consumed < maxTableLog - minBits + 1 cycle |
587 | HUF_fillDTableX4(dt, maxTableLog, sortedSymbol, sizeOfSort, rankStart0, rankVal, maxW, tableLog + 1) |
589 | tableLog = maxTableLog |
590 | tableType = 1 |
591 | No 3D Now!(DTable, & dtd, size of dtd ) |
592 | Return iSize |
Name | Describe |
---|---|
HUF_decompress1X4_DCtx_wksp | |
HUF_decompress4X4_DCtx_wksp | |
ZSTD_loadEntropy | : size of entropy tables read |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |