-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch CRC-CCITT libraries #6499
Conversation
git-subtree-dir: 3rdparty/libcrc git-subtree-split: b5e4186d7ab63458e79084842dced166be2ca5b5
cc @tqchen |
@areusch the vta-hw update might be unintended, please use git submodule update to point to the upstream code |
ugh, fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be better to use BOOST's crc or LLVM's crc?
(1) Boost's crc (16-bit, extensive types):
- https://www.boost.org/doc/libs/1_74_0/doc/html/crc.html
- https://stackoverflow.com/questions/36732949/boost-crc-16-bit
We could only add boost detection to actual cmake flow and just use it.
(2) LLVM's crc (32-bit variant only):
- See header /usr/include/llvm/Support/CRC.h
LLVM is already involved, we can directly use getCRC() function.
Thansk @cbalint13 I believe the main concern here is the need for a minimum C impl for micro controllers, so boost/llvm cannot be used in this case. Although the most ideal case might be a mininum impl in the uTVM source. I am going to merge this for now. |
Fixes #6496.
I found an MIT-licensed library that was fairly easy to adapt, but I had to make some changes on top of the pristine import. I feel like we normally use submodule, but given changes were needed, imported with subtree and patched on top. let me know if you prefer a different approach.