mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
replaced 8 bit CRC with 16 bit 0xA8F4
8 bit CRC is simply too weak with a large list size
This commit is contained in:
parent
46ef3d8dbe
commit
f9dad0397b
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ int main()
|
||||||
const int M = 7;
|
const int M = 7;
|
||||||
const int N = 1 << M;
|
const int N = 1 << M;
|
||||||
const bool crc_aided = true;
|
const bool crc_aided = true;
|
||||||
CODE::CRC<uint8_t> crc(0xD9);
|
CODE::CRC<uint16_t> crc(0xA8F4);
|
||||||
const int C = 8;
|
const int C = 16;
|
||||||
int K = R * N + crc_aided * C;
|
int K = R * N + crc_aided * C;
|
||||||
#if 1
|
#if 1
|
||||||
const int L = 64;
|
const int L = 64;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue