mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
allow larger list size for testing
This commit is contained in:
parent
f5f1fc76b3
commit
43508ce94e
1 changed files with 7 additions and 3 deletions
|
|
@ -123,7 +123,7 @@ template <typename TYPE, int MAX_M>
|
|||
class PACListDecoder
|
||||
{
|
||||
static_assert(MAX_M >= 5 && MAX_M <= 8);
|
||||
static_assert(TYPE::SIZE == 64);
|
||||
static_assert(TYPE::SIZE >= 64);
|
||||
typedef PolarHelper<TYPE> PH;
|
||||
typedef typename TYPE::value_type VALUE;
|
||||
typedef typename PH::PATH PATH;
|
||||
|
|
@ -138,14 +138,18 @@ public:
|
|||
assert(level <= MAX_M);
|
||||
PATH metric[TYPE::SIZE];
|
||||
int count = 0;
|
||||
for (int k = 0; k < TYPE::SIZE; ++k)
|
||||
for (int k = 0; k < 64; ++k)
|
||||
metric[k] = 0;
|
||||
for (int k = 64; k < TYPE::SIZE; ++k)
|
||||
metric[k] = 1000000;
|
||||
int length = 1 << level;
|
||||
for (int i = 0; i < length; ++i)
|
||||
soft[length+i] = vdup<TYPE>(codeword[i]);
|
||||
int state[TYPE::SIZE];
|
||||
for (int i = 0; i < TYPE::SIZE; ++i)
|
||||
for (int i = 0; i < 64; ++i)
|
||||
state[i] = (i << 7) | (i << 1);
|
||||
for (int i = 64; i < TYPE::SIZE; ++i)
|
||||
state[i] = 0;
|
||||
int frozen = length - mesg_bits;
|
||||
|
||||
switch (level) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue