mirror of
https://github.com/jarun/nnn.git
synced 2025-03-14 10:44:05 +00:00
Use persistent table
This commit is contained in:
parent
1847a7647f
commit
577e7693d6
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ static uchar crc8fast(const uchar * const message, size_t n)
|
||||||
size_t byte;
|
size_t byte;
|
||||||
|
|
||||||
/* CRC data */
|
/* CRC data */
|
||||||
const uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned)) = {
|
static const uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned)) = {
|
||||||
0, 94, 188, 226, 97, 63, 221, 131, 194, 156, 126, 32, 163, 253, 31, 65,
|
0, 94, 188, 226, 97, 63, 221, 131, 194, 156, 126, 32, 163, 253, 31, 65,
|
||||||
157, 195, 33, 127, 252, 162, 64, 30, 95, 1, 227, 189, 62, 96, 130, 220,
|
157, 195, 33, 127, 252, 162, 64, 30, 95, 1, 227, 189, 62, 96, 130, 220,
|
||||||
35, 125, 159, 193, 66, 28, 254, 160, 225, 191, 93, 3, 128, 222, 60, 98,
|
35, 125, 159, 193, 66, 28, 254, 160, 225, 191, 93, 3, 128, 222, 60, 98,
|
||||||
|
|
Loading…
Add table
Reference in a new issue