crc32c icon indicating copy to clipboard operation
crc32c copied to clipboard

Fast CRC-32-Castagnoli implementation in Rust

Results 15 crc32c issues
Sort by recently updated
recently updated
newest added

fixes #34. https://github.com/zowens/crc32c/blob/47c2999907a770daec5444cf9fcb522926d8cfe4/src/util.rs#L33 this line in `util::split` transmutes a `&[u8]` to a `&[u64]` without considering endianness, causing incorrect results on BE targets. to fix this, i have it return a...

`util::split` documents the following invariants of the returned slices: https://github.com/zowens/crc32c/blob/47c2999907a770daec5444cf9fcb522926d8cfe4/src/util.rs#L3-L6 however, `mid` doesn't seem to uphold these. adding the following to the function before it returns `(start, mid, end)` results...

I am trying to run some code which uses `crc32c` on powerpc 32 and 64 bit and I noticed it produces incorrect results. I have tried to run the test...

fixes #32 > i changed Matrix to have zero-initialized integers because it was used in so many methods, and would make things more convoluted to write correctly that way. i...

the build script creates uninitialized integers in a few places: https://github.com/zowens/crc32c/blob/47c2999907a770daec5444cf9fcb522926d8cfe4/build.rs#L13 https://github.com/zowens/crc32c/blob/47c2999907a770daec5444cf9fcb522926d8cfe4/build.rs#L43-L49 https://github.com/zowens/crc32c/blob/47c2999907a770daec5444cf9fcb522926d8cfe4/build.rs#L135 afaik, this is undefined behavior (excerpt from MaybeUninit type docs) > Moreover, uninitialized memory is special in...

Is there anything that blocks ARM hardware acceleration feature from being stable? Will it be better to guard it using a feature?

Refer https://reveng.sourceforge.io/crc-catalogue/all.htm and https://github.com/mrhooray/crc-rs/blob/7e4b1b4879e3bb881f150b550f150df1ff199f04/src/crc32.rs#L60 The initial value should consider `refin = true`.