Function report | 
Source Code:lib\zstd\fse_compress.c | 
Create Date:2022-07-28 07:02:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:FSE_normalizeCount
Proto:size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t total, unsigned maxSymbolValue)
Type:size_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| short * | normalizedCounter | |
| unsigned | tableLog | |
| const unsigned * | count | |
| size_t | total | |
| unsigned | maxSymbolValue | 
| 611 | If tableLog == 0 Then tableLog = FSE_DEFAULT_TABLELOG | 
| 613 | If tableLog < FSE_MIN_TABLELOG Then Return -***************************************** Error codes handling(GENERIC) | 
| 615 | If tableLog > Constants Then Return -***************************************** Error codes handling(tableLog_tooLarge) | 
| 617 | If tableLog < provides the minimum logSize to safely represent a distribution Then Return -***************************************** Error codes handling(GENERIC) | 
| 625 | stillToDistribute = 1 << tableLog | 
| 627 | largest = 0 | 
| 628 | largestP = 0 | 
| 629 | lowThreshold = total >> tableLog | 
| 631 | When s <= maxSymbolValue cycle | 
| 635 | normalizedCounter[s] = 0 | 
| 636 | Continue | 
| 638 | If count[s] <= lowThreshold Then | 
| 639 | normalizedCounter[s] = -1 | 
| 640 | stillToDistribute-- | 
| 641 | Else | 
| 653 | If -stillToDistribute >= normalizedCounter[largest] >> 1 Then | 
| 656 | If Error Management Then Return errorCode | 
| 658 | Else normalizedCounter[largest] += stillToDistribute | 
| 662 | Return tableLog | 
| Name | Describe | 
|---|---|
| HUF_compressWeights_wksp | |
| ZSTD_compressSequences_internal | 
| 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  |