Hi all
I am trying to translate some gcc code to gpc, and I have become a tad blearly-eyed with this bit:
" while(size--) crc =(crc << 8) ^ crctab[((crc >> 24) ^ *cp++) & 0xFF];
for(; length; length >>= 8) crc =(crc << 8) ^ crctab[((crc >> 24) ^ length) & 0xFF];
crc = ~crc & 0xFFFFFFFF; "
Can anyone make any sense of this? Thanks.
ps: I understand the shl and shr calls, and I think I have a good idea of what the rest is doing - but I would prefer not to guess (bette safe than sorry!).
Thanks.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/