mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
libs/libc/crc16: move crc16 table to rodata
move crc16 table from data to rodata Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
/* From CRC-16-CCITT (x^16+x^12+x^5+1) */
|
||||
|
||||
static uint16_t crc16ccitt_tab[256] =
|
||||
static const uint16_t crc16ccitt_tab[256] =
|
||||
{
|
||||
0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf,
|
||||
0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7,
|
||||
|
||||
Reference in New Issue
Block a user