#16421 - panjun10 - Sun Feb 15, 2004 10:01 pm
Is this right or not????
unsigned long calcCRC (unsigned long data,unsigned crctemp)
{
crctemp^=data;
for (int i=0;i<32;i++)
{
if (crctemp&1)crctemp^=0x186f6;
crctemp>>1;
}
retrun crctemp;
}
unsigned long calcCRC (unsigned long data,unsigned crctemp)
{
crctemp^=data;
for (int i=0;i<32;i++)
{
if (crctemp&1)crctemp^=0x186f6;
crctemp>>1;
}
retrun crctemp;
}