mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
added Artin Schreier's imap acceleration
This commit is contained in:
parent
a796788a12
commit
61b7c19e68
3 changed files with 31 additions and 11 deletions
|
|
@ -19,7 +19,7 @@ public:
|
|||
typedef typename GF::ValueType ValueType;
|
||||
typedef typename GF::IndexType IndexType;
|
||||
static const int N = GF::N, K = N - NR;
|
||||
ReedSolomonDecoder() {}
|
||||
ReedSolomonErrorCorrection<NR, FCR, GF> algorithm;
|
||||
int compute_syndromes(ValueType *code, ValueType *syndromes)
|
||||
{
|
||||
// $syndromes_i = code(pe^{FCR+i})$
|
||||
|
|
@ -49,7 +49,7 @@ public:
|
|||
return 0;
|
||||
IndexType locations[NR];
|
||||
ValueType magnitudes[NR];
|
||||
int count = ReedSolomonErrorCorrection<NR, FCR, GF>::algorithm(syndromes, locations, magnitudes, erasures, erasures_count);
|
||||
int count = algorithm(syndromes, locations, magnitudes, erasures, erasures_count);
|
||||
if (count <= 0)
|
||||
return count;
|
||||
for (int i = 0; i < count; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue