core/stdarch/crates/core_arch/src/hexagon/mod.rs
1//! Hexagon architecture intrinsics
2//!
3//! This module contains intrinsics for the Qualcomm Hexagon DSP architecture,
4//! including the Hexagon Vector Extensions (HVX).
5//!
6//! HVX is a wide SIMD architecture designed for high-performance signal processing,
7//! machine learning, and image processing workloads.
8//!
9//! ## Vector Length Modes
10//!
11//! HVX supports two vector length modes:
12//! - 64-byte mode (512-bit vectors): Use the [`v64`] module
13//! - 128-byte mode (1024-bit vectors): Use the [`v128`] module
14//!
15//! Both modules are available unconditionally, but require the appropriate
16//! target features to actually use the intrinsics:
17//! - For 64-byte mode: `-C target-feature=+hvx-length64b`
18//! - For 128-byte mode: `-C target-feature=+hvx-length128b`
19//!
20//! Note that HVX v66 and later default to 128-byte mode, while earlier versions
21//! (v60-v65) default to 64-byte mode.
22
23/// HVX intrinsics for 64-byte vector mode (512-bit vectors)
24#[unstable(feature = "stdarch_hexagon", issue = "151523")]
25pub mod v64;
26
27/// HVX intrinsics for 128-byte vector mode (1024-bit vectors)
28#[unstable(feature = "stdarch_hexagon", issue = "151523")]
29pub mod v128;