mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Update crc8 vars
This commit is contained in:
parent
d27b4dbef7
commit
0063df2520
1 changed files with 2 additions and 2 deletions
4
nnn.c
4
nnn.c
|
@ -186,7 +186,7 @@ disabledbg()
|
||||||
#define F_NORMAL 0x80 /* spawn child process in non-curses regular CLI mode */
|
#define F_NORMAL 0x80 /* spawn child process in non-curses regular CLI mode */
|
||||||
|
|
||||||
/* CRC8 macros */
|
/* CRC8 macros */
|
||||||
#define WIDTH (8 * sizeof(unsigned char))
|
#define WIDTH (sizeof(unsigned char) << 3)
|
||||||
#define TOPBIT (1 << (WIDTH - 1))
|
#define TOPBIT (1 << (WIDTH - 1))
|
||||||
#define POLYNOMIAL 0xD8 /* 11011 followed by 0's */
|
#define POLYNOMIAL 0xD8 /* 11011 followed by 0's */
|
||||||
#define CRC8_TABLE_LEN 256
|
#define CRC8_TABLE_LEN 256
|
||||||
|
@ -278,7 +278,7 @@ static uint open_max;
|
||||||
static bm bookmark[BM_MAX];
|
static bm bookmark[BM_MAX];
|
||||||
static uchar BLK_SHIFT = 9;
|
static uchar BLK_SHIFT = 9;
|
||||||
|
|
||||||
static uchar crc8table[CRC8_TABLE_LEN];
|
static uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned));
|
||||||
static uchar g_crc;
|
static uchar g_crc;
|
||||||
|
|
||||||
#ifdef LINUX_INOTIFY
|
#ifdef LINUX_INOTIFY
|
||||||
|
|
Loading…
Add table
Reference in a new issue