Files
mir_server/sdk/utils/crc.h

34 lines
791 B
C
Raw Normal View History

2025-01-09 17:45:40 +08:00
#ifndef _WYLIB_CRC_H_
#define _WYLIB_CRC_H_
/**
* wylib 2006 - 2011 CRC运算函数库
* CRC码表并使用汇编函数书写CRC计算函数
* 使CPU的一级指令缓存快
* 访
*/
#ifndef STDCALL
#define STDCALL __stdcall
#endif
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Comments: CRC32值计算函数data的datalen字节计算crc值
* Param DWORD crc: crc值
* Param const void * data:
* Param UINT_PTR datalen: crc值的字节数量
* @Return DWORD : crc32计算的结果
*/
unsigned int CRC32Update(unsigned int crc, const void* data, int datalen);
#ifdef __cplusplus
}
#endif
#endif