Merge pull request 'docs(clawhdf5): document DType variants, fix unresolved doc links' (#17) from sdlc-docs/clawhdf5-types-20260514-165210 into main

This commit is contained in:
redclawsystems
2026-05-14 23:54:48 +00:00
commit 3f222f6956
3030 changed files with 89917 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
//! SIMD-accelerated checksum implementations.
/// Compute Fletcher-32 checksum, auto-dispatching to the appropriate backend.
///
/// Note: the fletcher32 implementations in all backends are scalar (no SIMD
/// intrinsics), so no unsafe dispatch is needed.
pub fn checksum_fletcher32(data: &[u8]) -> u32 {
match crate::detect_backend() {
#[cfg(target_arch = "aarch64")]
crate::Backend::Neon => crate::neon::checksum_fletcher32(data),
#[cfg(target_arch = "x86_64")]
crate::Backend::Avx2 | crate::Backend::Avx512 => crate::avx2::checksum_fletcher32(data),
_ => crate::scalar::checksum_fletcher32(data),
}
}