Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\reed_solomon\test_rslib.c Create Date:2022-07-28 06:59:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Test up to error correction capacity

Proto:static void test_uc(struct rs_control *rs, int len, int errs, int eras, int trials, struct estat *stat, struct wspace *ws, int method)

Type:void

Parameter:

TypeParameterName
struct rs_control *rs
intlen
interrs
interas
inttrials
struct estat *stat
struct wspace *ws
intmethod
264  dlen = len - nroots
265  derrlocs = derrlocs
266  errlocs = errlocs
267  corr = correction buffer
268  c = sent codeword
269  r = received word
270  s = syndrome
274  When j < trials cycle
275  nerrs = Generates a random codeword and stores it in c
278  Case method == CORR_BUFFER
279  derrs = decode_rs16(rs, r, r + dlen, dlen, NULL, eras, derrlocs, 0, corr)
282  Break
283  Case method == CALLER_SYNDROME
284  compute_syndrome(rs, r, len, s)
288  Break
289  Case method == IN_PLACE
290  derrs = decode_rs16(rs, r, r + dlen, dlen, NULL, eras, derrlocs, 0, NULL)
292  Break
293  Default
294  Continue
297  If derrs != nerrs Then irv++
300  If method != IN_PLACE Then
301  When i < derrs cycle
302  If errlocs[derrlocs[i]] != 1 Then wepos++
307  If memcmp(r, c, len * size of r ) Then dwrong++
310  nwords += trials
Caller
NameDescribe
ex_rs_helper