#include "shared/shared.h"
Go to the source code of this file.
◆ CRC_INIT_VALUE
#define CRC_INIT_VALUE 0xffff |
Definition at line 26 of file crc.c.
◆ CRC_XOR_VALUE
#define CRC_XOR_VALUE 0x0000 |
Definition at line 27 of file crc.c.
◆ COM_BlockSequenceCRCByte()
byte COM_BlockSequenceCRCByte |
( |
byte * |
base, |
|
|
size_t |
length, |
|
|
int |
sequence |
|
) |
| |
Definition at line 148 of file crc.c.
157 Com_Error(ERR_DROP,
"%s: sequence < 0", __func__);
163 memcpy(chkb, base, length);
166 chkb[length + 1] = p[1];
167 chkb[length + 2] = p[2];
168 chkb[length + 3] = p[3];
174 for (x = 0, n = 0; n < length; n++)
177 crc = (crc ^ x) & 0xff;
Referenced by CL_SendDefaultCmd().
◆ CRC_Block()
static uint16_t CRC_Block |
( |
byte * |
start, |
|
|
size_t |
count |
|
) |
| |
|
static |
◆ chktbl
◆ crctable
const uint16_t crctable[256] |
|
static |