mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
step pointers after updating at the end
This commit is contained in:
parent
65dd0fab50
commit
a61a7d05cf
2 changed files with 8 additions and 4 deletions
|
|
@ -183,7 +183,7 @@ class LDPCDecoder
|
|||
for (int d = 0; d < deg; ++d)
|
||||
out[d] = selfcorr(bl[d], out[d]);
|
||||
for (int d = 0; d < deg; ++d)
|
||||
*bl++ = out[d];
|
||||
bl[d] = out[d];
|
||||
for (int c = 0; c < cnt; ++c)
|
||||
mes[c] = vqadd(inp[c], out[c]);
|
||||
par[0] = vqadd(inp[cnt], out[cnt]);
|
||||
|
|
@ -199,6 +199,7 @@ class LDPCDecoder
|
|||
pty[W*i+j] = par[1];
|
||||
for (int c = 0; c < cnt; ++c)
|
||||
msg[of[c]] = rotate(mes[c], sh[c]);
|
||||
bl += deg;
|
||||
}
|
||||
}
|
||||
//assert(bl <= bnl + BNL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue