函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\fse_compress.c Create Date:2022-07-27 07:59:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:FSE_count_parallel_wksp() :* Same as FSE_count_parallel(), but using an externally provided scratch buffer.* `workSpace` size must be a minimum of `1024 * sizeof(unsigned)``

函数原型:static size_t FSE_count_parallel_wksp(unsigned *count, unsigned *maxSymbolValuePtr, const void *source, size_t sourceSize, unsigned checkMax, unsigned *const workSpace)

返回类型:size_t

参数:

类型参数名称
unsigned *count
unsigned *maxSymbolValuePtr
const void *source
size_tsourceSize
unsignedcheckMax
unsigned *constworkSpace
360  ip等于source
361  iend等于ipsourceSize
362  maxSymbolValue等于maxSymbolValuePtr
363  max等于0
364  Counting1等于workSpace
365  Counting2等于Counting1加256
366  Counting3等于Counting2加256
367  Counting4等于Counting3加256
369  memset(Counting1, 0, 4 * 256 * sizeof(unsigned))
372  如果非sourceSize
373  memset(count, 0, maxSymbolValue + 1)
374  maxSymbolValuePtr等于0
375  返回:0
377  如果非maxSymbolValuemaxSymbolValue等于255
382  cached等于ZSTD_read32(ip)
383  ip加等于4
384 ip小于iend减15循环
385  c等于cached
386  cached等于ZSTD_read32(ip)
387  ip加等于4
388  Counting1[(BYTE)c]自加
389  Counting2[(BYTE)(c >> 8)]自加
390  Counting3[(BYTE)(c >> 16)]自加
391  Counting4[c >> 24]自加
392  c等于cached
393  cached等于ZSTD_read32(ip)
394  ip加等于4
395  Counting1[(BYTE)c]自加
396  Counting2[(BYTE)(c >> 8)]自加
397  Counting3[(BYTE)(c >> 16)]自加
398  Counting4[c >> 24]自加
399  c等于cached
400  cached等于ZSTD_read32(ip)
401  ip加等于4
402  Counting1[(BYTE)c]自加
403  Counting2[(BYTE)(c >> 8)]自加
404  Counting3[(BYTE)(c >> 16)]自加
405  Counting4[c >> 24]自加
406  c等于cached
407  cached等于ZSTD_read32(ip)
408  ip加等于4
409  Counting1[(BYTE)c]自加
410  Counting2[(BYTE)(c >> 8)]自加
411  Counting3[(BYTE)(c >> 16)]自加
412  Counting4[c >> 24]自加
414  ip减等于4
418 ip小于iend循环
419  Counting1[ * ip++]自加
421  如果checkMax
423 s大于maxSymbolValue循环
424  Counting1[s]加等于Counting2[s]加Counting3[s]加Counting4[s]
432 s小于等于maxSymbolValue循环
433  count[s]等于Counting1[s]加Counting2[s]加Counting3[s]加Counting4[s]
434  如果count[s]大于maxmax等于count[s]
439  当非count[maxSymbolValue]循环
440  maxSymbolValue自减
441  maxSymbolValuePtr等于maxSymbolValue
442  返回:max
调用者
名称描述
FSE_countFast_wkspFSE_countFast_wksp() :* Same as FSE_countFast(), but using an externally provided scratch buffer.* `workSpace` size must be table of >= `1024` unsigned
FSE_count_wkspFSE_count_wksp() :* Same as FSE_count(), but using an externally provided scratch buffer.* `workSpace` size must be table of >= `1024` unsigned