gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > The gba's multiboot'CRC

#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;
}