Message98325
Interesting. I agree that that looks like a case where it would be desirable for a >> -n to do a << n.
By the way, I don't think your formula is quite correct: your crc is going to grow unboundedly as extra data bytes come in. I suspect that you want to mask the result with (1 << crc_width) - 1 after each update.
(And what's the '& 0xFF' for? Isn't it redundant?) |
|
Date |
User |
Action |
Args |
2010-01-26 10:57:01 | mark.dickinson | set | recipients:
+ mark.dickinson, tim.peters, josiahcarlson, dtorp, cmcqueen1975 |
2010-01-26 10:57:00 | mark.dickinson | set | messageid: <1264503420.83.0.320339269682.issue1205239@psf.upfronthosting.co.za> |
2010-01-26 10:56:59 | mark.dickinson | link | issue1205239 messages |
2010-01-26 10:56:59 | mark.dickinson | create | |
|