Skip to content
Snippets Groups Projects
Verified Commit c0cb61e0 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

docs: improved module description for CRC32

parent 5ba6672e
No related branches found
No related tags found
No related merge requests found
Pipeline #4812 passed
//! CRC-32 implementation according to the CRC-32/ISO-HDLC specification.
//! CRC-32 implementation according to the CRC-32 (ISO-HDLC) specification.
//!
//! The CRC-32 algorithm is a widely used checksum algorithm that is used in many
//! network protocols and file formats. The algorithm is based on a polynomial
//! division of the input data and a predefined polynomial value.
//!
//! The polynomial used in this implementation is 0x04C11DB7.
//!
//! This implementation is optimized for modern CPUs by using hardware acceleration
//! when available.
//! when available. Current support includes only CRC for aarch64.
#[cfg(all(feature = "simd", target_arch = "aarch64"))]
use std::arch::is_aarch64_feature_detected;
......
......@@ -4,8 +4,10 @@
//! network protocols and file formats. The algorithm is based on a polynomial
//! division of the input data and a predefined polynomial value.
//!
//! The polynomial used in this implementation is 0x1EDC6F41.
//!
//! This implementation is optimized for modern CPUs by using hardware acceleration
//! when available.
//! when available. Current support includes SSE4.2 for x86_64 and CRC for aarch64.
#[cfg(all(feature = "simd", target_arch = "x86_64"))]
use std::arch::is_x86_feature_detected;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment