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:
chao an 2025-04-06 22:21:03 +08:00 committed by Lup Yuen Lee
parent 4e2f6eabb3
commit 921ffc7319
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@
/* crc16_tab calculated by Mark G. Mendel, Network Systems Corporation */
static uint16_t crc16_tab[256] =
static const uint16_t crc16_tab[256] =
{
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,

View file

@ -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,