函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Tests for correct behaviour beyond error correction capacity

函数原型:static void test_bc(struct rs_control *rs, int len, int errs, int eras, int trials, struct bcstat *stat, struct wspace *ws)

返回类型:void

参数:

类型参数名称
struct rs_control *rs
intlen
interrs
interas
inttrials
struct bcstat *stat
struct wspace *ws
370  nroots等于nroots
371  dlen等于lennroots
372  derrlocs等于derrlocs
373  corr等于 correction buffer
374  r等于 received word
377 j小于trials循环
378  Generates a random codeword and stores it in c
379  derrs等于decode_rs16(rs, r, r + dlen, dlen, NULL, eras, derrlocs, 0, corr)
381  fix_err(r, derrs, corr, derrlocs)
383  如果derrs大于等于0则
384  rsuccess自加
395  memset(corr, 0, nroots * corr的长度)
396  encode_rs16(rs, r, dlen, corr, 0)
398  如果memcmp(r + dlen, corr, nroots * corr的长度)则noncw自加
400  否则
401  rfail自加
404  nwords加等于trials
调用者
名称描述
exercise_rs_bc