函数逻辑报告 |
Source Code:lib\zstd\zstd_opt.h |
Create Date:2022-07-27 08:02:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ZSTD_compressBlock_opt_generic
函数原型:void ZSTD_compressBlock_opt_generic(ZSTD_CCtx *ctx, const void *src, size_t srcSize, const int ultra)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
ZSTD_CCtx * | ctx | |
const void * | src | |
size_t | srcSize | |
const int | ultra |
409 | seqStorePtr等于seqStore的地址 |
416 | prefixStart等于base加dictLimit |
418 | maxSearches等于1U左移searchLog位 |
420 | mls等于searchLength |
421 | minMatch等于如果searchLength恒等于3则3否则4 |
424 | matches等于matchTable |
430 | ZSTD_rescaleFreqs(seqStorePtr, (constBYTE * )src, srcSize) |
431 | ip加等于ip恒等于prefixStart |
442 | memset(opt, 0, sizeof(ZSTD_optimal_t)) |
443 | last_pos等于0 |
451 | 如果repCur大于0且repCur小于ip减prefixStart且 safe only for comparisons 恒等于 safe only for comparisons 则 |
472 | match_num等于ZSTD_BtGetAllMatches_selectMLS(ctx, ip, iend, maxSearches, mls, matches, minMatch) |
475 | ip自加 |
476 | 继续下一循环 |
511 | mlen等于1 |
518 | 如果mlen恒等于1则 |
521 | price等于price加ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - litlen) |
522 | 否则price等于ZSTD_getLiteralPrice(seqStorePtr, litlen, anchor) |
524 | 否则 |
525 | litlen等于1 |
526 | price等于price加ZSTD_getLiteralPrice(seqStorePtr, litlen, inr - 1) |
539 | 如果off大于ZSTD_REP_MOVE_OPT则 |
543 | 否则 |
555 | 如果repCur大于0且repCur小于inr减prefixStart且 safe only for comparisons 恒等于 safe only for comparisons 则 |
591 | match_num等于ZSTD_BtGetAllMatches_selectMLS(ctx, inr, iend, maxSearches, mls, matches, best_mlen) |
606 | 如果mlen恒等于1则 |
608 | 如果cur大于litlen则price等于price加ZSTD_getPrice(seqStorePtr, litlen, ip + cur - litlen, off - 1, mlen - MINMATCH, ultra) |
611 | 否则price等于ZSTD_getPrice(seqStorePtr, litlen, anchor, off - 1, mlen - MINMATCH, ultra) |
613 | 否则 |
614 | litlen等于0 |
615 | price等于price加ZSTD_getPrice(seqStorePtr, 0, NULL, off - 1, mlen - MINMATCH, ultra) |
621 | mlen自加 |
631 | _storeSequence : |
632 | mlen等于1 |
634 | 当1循环 |
652 | 如果mlen恒等于1则 |
661 | 如果offset大于ZSTD_REP_MOVE_OPT则 |
666 | 否则 |
667 | 如果offset不等于0则 |
678 | ZSTD_updatePrice(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH) |
687 | 以i小于umber of repcodes 循环repToConfirm[i]等于rep[i] |
693 | lastLLSize等于iend减anchor |
694 | 内存复制(lit, anchor, lastLLSize) |
695 | lit加等于lastLLSize |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |