函数逻辑报告 |
Source Code:lib\zstd\fse_compress.c |
Create Date:2022-07-27 07:59:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:FSE_normalizeCount
函数原型:size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t total, unsigned maxSymbolValue)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| short * | normalizedCounter | |
| unsigned | tableLog | |
| const unsigned * | count | |
| size_t | total | |
| unsigned | maxSymbolValue |
| 611 | 如果tableLog恒等于0则tableLog等于FSE_DEFAULT_TABLELOG |
| 613 | 如果tableLog小于FSE_MIN_TABLELOG则返回:-***************************************** Error codes handling(GENERIC) |
| 615 | 如果tableLog大于Constants则返回:-***************************************** Error codes handling(tableLog_tooLarge) |
| 617 | 如果tableLog小于provides the minimum logSize to safely represent a distribution 则返回:-***************************************** Error codes handling(GENERIC) |
| 625 | stillToDistribute等于1左移tableLog位 |
| 627 | largest等于0 |
| 628 | largestP等于0 |
| 629 | lowThreshold等于total右移tableLog位 |
| 631 | 以s小于等于maxSymbolValue循环 |
| 635 | normalizedCounter[s]等于0 |
| 636 | 继续下一循环 |
| 638 | 如果count[s]小于等于lowThreshold则 |
| 639 | normalizedCounter[s]等于负1 |
| 640 | stillToDistribute自减 |
| 641 | 否则 |
| 653 | 如果负stillToDistribute大于等于normalizedCounter[largest]右移1位则 |
| 656 | 如果Error Management 则返回:errorCode |
| 658 | 否则normalizedCounter[largest]加等于stillToDistribute |
| 662 | 返回:tableLog |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |