Home
last modified time | relevance | path

Searched refs:errloc (Results 1 – 2 of 2) sorted by relevance

/lib/reed_solomon/
Dtest_rslib.c162 int errloc; in get_rcw_we() local
186 errloc = prandom_u32() % len; in get_rcw_we()
187 } while (errlocs[errloc] != 0); in get_rcw_we()
189 errlocs[errloc] = 1; in get_rcw_we()
190 r[errloc] ^= errval; in get_rcw_we()
197 errloc = prandom_u32() % len; in get_rcw_we()
198 } while (errlocs[errloc] != 0); in get_rcw_we()
200 derrlocs[i] = errloc; in get_rcw_we()
204 errlocs[errloc] = 2; in get_rcw_we()
212 errlocs[errloc] = 1; in get_rcw_we()
[all …]
/lib/
Dbch.c1055 const unsigned int *syn, unsigned int *errloc) in bch_decode() argument
1095 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode()
1103 if (errloc[i] >= nbits) { in bch_decode()
1107 errloc[i] = nbits-1-errloc[i]; in bch_decode()
1109 errloc[i] = (errloc[i] & ~7) | in bch_decode()
1110 (7-(errloc[i] & 7)); in bch_decode()