force-net / Crc32.NET

Fast version of Crc32 algorithm for .NET
MIT License
199 stars 52 forks source link

Acelerated code #6

Closed JosePineiro closed 6 years ago

JosePineiro commented 6 years ago

Replace " & 0xFF" by cast "(byte)" " ((crcLocal >> 24) ^ input[offset + 3])" are always less 256. Is not need "& 0xff"

force-net commented 6 years ago

Sorry for delay. I'll check is there any reasonable difference between these variants and if it will exist, I'll merge this PR

force-net commented 6 years ago

Sorry for long delay, I have no time to test code. But after test, I've found that it is faster on ~1.5% Thanks for improvement