??? 02/13/08 13:28 Read: times |
#150724 - Yes, it's a typo! Responding to: ???'s previous message |
See:
http://www.8052.com/forumchat/read.phtml?id=150715 http://www.8052.com/forumchat/read.phtml?id=150717 Koosha Khannakhjavani said:
you are right,in text he is talking about a "p" which is pointing to data, I havn't noticed it, sorry. Ap Charles said:
I got very confused first , still I cant see any P in this artical http://www.repairfaq.org/filipg/LI...c_v33.html
is the snippet mistyped there? Yes - that is the code with the typo! Here is the erroneous code, in context: http://www.repairfaq.org/filipg/LINK/F_crc_v33.html said:
In C, the algorithm main loop looks like this: r=0; while (len--) { byte t = (r >> 24) & 0xFF; r = (r << 8) | *++; r^=table[t]; }where len is the length of the augmented message in bytes, p points to the augmented message, r is the register, t is a temporary, and table is the computed table. This code can be made even more unreadable as follows: r=0; while (len--) r = ((r << 8) | *++) ^ t[(r >> 24) & 0xFF]; In each case, the "*++" should be "*p++" |
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 |