摘要: grep -r --exclude=*.svn search_query * 阅读全文
posted @ 2012-04-05 20:59 maadiah 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 查表法,c语言实现;用的是比较小的表 // 7b10 typedef unsigned char u8; typedef unsigned short u16;#include <stdio.h>u16 const wCRCTalbeAbs[16] ={ 0x0000, 0xCC01, 0xD801, 0x1400, 0xF001, 0x3C00, 0x2800, 0xE401, 0xA001, 0x6C00, 0x7800, 0xB401, 0x5000, 0x9C01, 0x8801, 0x4400, };u16 CRC16(u8* pchMsg, u8 wData... 阅读全文
posted @ 2012-04-05 10:33 maadiah 阅读(1396) 评论(0) 推荐(0) 编辑