Skip to main content

manchester_encode_simd

Function manchester_encode_simd 

Source
pub fn manchester_encode_simd(bits: &[u8], amplitude: f32) -> Vec<f32>
Expand description

SIMD-accelerated Manchester / BMC encoder (x86_64 AVX2).

Processes 32 bits at a time using 256-bit AVX2 registers. Falls back to manchester_encode_scalar on non-x86_64 targets or when AVX2 is not available at runtime.

ยงSafety Notes

The unsafe inner function is guarded by a runtime CPUID check via is_x86_feature_detected!("avx2") before it is ever called.