diff options
| author | 2018-10-19 08:01:42 +0530 | |
|---|---|---|
| committer | 2018-10-19 08:01:42 +0530 | |
| commit | 0063df25203be34edda30a29b9c9c88ef4080b30 (patch) | |
| tree | d2d5b8e45b7b3378682602aa9bc1f9878fbf293e | |
| parent | d27b4dbef79244d403da223a1d0fcb62bc14556d (diff) | |
| download | nnn-0063df25203be34edda30a29b9c9c88ef4080b30.tar.gz | |
Update crc8 vars
| -rw-r--r-- | nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -186,7 +186,7 @@ disabledbg() #define F_NORMAL 0x80 /* spawn child process in non-curses regular CLI mode */ /* CRC8 macros */ -#define WIDTH (8 * sizeof(unsigned char)) +#define WIDTH (sizeof(unsigned char) << 3) #define TOPBIT (1 << (WIDTH - 1)) #define POLYNOMIAL 0xD8 /* 11011 followed by 0's */ #define CRC8_TABLE_LEN 256 @@ -278,7 +278,7 @@ static uint open_max; static bm bookmark[BM_MAX]; static uchar BLK_SHIFT = 9; -static uchar crc8table[CRC8_TABLE_LEN]; +static uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned)); static uchar g_crc; #ifdef LINUX_INOTIFY |