mirror of
https://github.com/hanzos3/crc64nvme.git
synced 2026-10-30 19:54:48 +00:00
main
A fork that still declares the upstream module path cannot be depended on: Go verifies the declared path against what was required, so requiring github.com/hanzos3/crc64nvme against a go.mod saying github.com/minio/crc64nvme fails outright. The fork existed and was unusable. One line — this package has no internal self-imports. Builds and tests pass under the new path. Tagged v1.1.1 to match the upstream release this descends from, so the provenance stays legible rather than restarting at v1.0.0 and losing it. Co-authored-by: Hanzo Dev <[email protected]>
crc64nvme
This Golang package calculates CRC64 checksums using carryless-multiplication accelerated with SIMD instructions for both ARM and x86. It is based on the NVME polynomial as specified in the NVM Express® NVM Command Set Specification.
The code is based on the crc64fast-nvme package in Rust and is released under the Apache 2.0 license.
For more background on the exact technique used, see this Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction paper.
Performance
To follow.
Requirements
All Go versions >= 1.22 are supported.
Contributing
Contributions are welcome, please send PRs for any enhancements.
Description
CRC64 checksums using carryless-multiplication accelerated with SIMD
122 KiB
Languages
Assembly
52.7%
Go
47.3%