tpircher-zz / pycrc

Free, easy to use Cyclic Redundancy Check (CRC) calculator and source code generator
https://pycrc.org
MIT License
169 stars 36 forks source link

[wishlist] aligned access for table driven #24

Closed liamstask closed 6 years ago

liamstask commented 7 years ago

Thanks for pycrc!

For table driven algorithms with --table-idx-width greater than 1, it would be nice to generate code that ensures aligned access.

Currently, any trailing unaligned bytes are handled individually (i.e. anything after the Remaining bytes with the standard algorithm comment), but it would be great to handle leading unaligned bytes individually as well, to ensure that the main loop is using aligned loads.

liamstask commented 6 years ago

Thanks! 🙏