Skip to content

Commit

Permalink
Merge pull request #450 from LedgerHQ/xch/crc-table-const
Browse files Browse the repository at this point in the history
src: bolos: cx_crc.c: Constify CRC tables
  • Loading branch information
xchapron-ledger authored Feb 2, 2024
2 parents 037612d + c02535a commit 439a235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bolos/cx_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#define cx_crc16_update sys_cx_crc16_update

static unsigned short const cx_ccitt16[] = {
static const unsigned short cx_ccitt16[] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108,
0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210,
0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b,
Expand Down Expand Up @@ -50,7 +50,7 @@ unsigned short sys_cx_crc16_update(unsigned short crc, const void *buf,

#define cx_crc32_update sys_cx_crc32_update

static unsigned int cx_ccitt32[] = {
static const unsigned int cx_ccitt32[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
Expand Down

0 comments on commit 439a235

Please sign in to comment.