??? 02/13/08 11:09 Read: times |
#150716 - doesn't compile!/reference Responding to: ???'s previous message |
No it doesn't compile at least in Codevision ,I don't know if it is valid in other compilers?
the original code is this, using copy-paste technology! ;-) r=0; while (len--) { byte t = (r >> 24) & 0xFF; r = (r << 8) | *++; r^=table[t]; } one mistake in the previous code is an redundant "r" in line 2 of while block! it's part of the article " A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS" at the end of chapter10 http://www.repairfaq.org/filipg/LI...c_v33.html thank you and sorry about format of the previous post. |
Topic | Author | Date |
C programming question | 01/01/70 00:00 | |
How to post source code | 01/01/70 00:00 | |
doesn't compile!/reference | 01/01/70 00:00 | |
That's because it's wrong! | 01/01/70 00:00 | |
feedback | 01/01/70 00:00 | |
Very Good . | 01/01/70 00:00 | |
what are you talking about Ap? | 01/01/70 00:00 | |
What I mean is | 01/01/70 00:00 | |
Unfair? | 01/01/70 00:00 | |
Unfair ? what I didnt got you ? | 01/01/70 00:00 | |
I would guess ... | 01/01/70 00:00 | |
Is this a typo | 01/01/70 00:00 | |
Yes, it's a typo! | 01/01/70 00:00 | |
Is this site chinese :)) | 01/01/70 00:00 | |
Thank you,Andy,Christoph | 01/01/70 00:00 |