mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
added soft Chase decoding for short BCH codes
gives about 1.5dB gain while only half the speed of hard decision.
This commit is contained in:
parent
130af67e08
commit
5cf0ff2297
3 changed files with 203 additions and 0 deletions
|
|
@ -34,6 +34,12 @@ public:
|
|||
{
|
||||
return (msg << P) | par[msg];
|
||||
}
|
||||
void operator()(int8_t *code, int msg)
|
||||
{
|
||||
int cw = (*this)(msg);
|
||||
for (int i = 0; i < N; ++i)
|
||||
code[i] = 1 - 2 * ((cw >> i) & 1);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue