mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
added 16 bit CRC
This commit is contained in:
parent
675ee7b024
commit
b8fb5e7dd6
3 changed files with 9 additions and 8 deletions
|
|
@ -372,10 +372,10 @@ struct Decoder : Common
|
|||
polar_decoder(nullptr, mesg, code, frozen_bits, code_order);
|
||||
int best = -1;
|
||||
for (int k = 0; k < mesg_type::SIZE; ++k) {
|
||||
crc0.reset();
|
||||
crc1.reset();
|
||||
for (int i = 0; i < crc_bits; ++i)
|
||||
crc0(mesg[i].v[k] < 0);
|
||||
if (crc0() == 0) {
|
||||
crc1(mesg[i].v[k] < 0);
|
||||
if (crc1() == 0) {
|
||||
best = k;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue