keep locations sorted by offset per layer

This commit is contained in:
Ahmet Inan 2019-09-29 10:06:14 +02:00
commit 488a8cbe2b
2 changed files with 2 additions and 0 deletions

View file

@ -160,6 +160,7 @@ class LDPCDecoder
lo[c].shi = shift[c] / W;
shift[c] = (shift[c] + 1) % M;
}
std::sort(lo, lo + cnt, [](const Loc &a, const Loc &b){ return a.off < b.off; });
TYPE par[2];
if (i) {
par[0] = pty[W*(i-1)+j];