Skip to content

Commit

Permalink
acle: move saturating intrinsics into its own module
Browse files Browse the repository at this point in the history
addresses #557 (comment)
  • Loading branch information
japaric authored and gnzlbg committed Feb 18, 2019
1 parent cc9bf63 commit 4987923
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/core_arch/src/acle/dsp.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! # References:
//!
//! - Section 8.3 "16-bit multiplications"
//! - Section 8.4 "Saturating intrinsics"
//!
//! Intrinsics that could live here:
//!
Expand All @@ -11,8 +10,6 @@
//! - __smultt
//! - __smulwb
//! - __smulwt
//! - __ssat
//! - __usat
//! - __qadd
//! - __qsub
//! - __qdbl
Expand Down
13 changes: 13 additions & 0 deletions crates/core_arch/src/acle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ mod dsp;
))]
pub use self::dsp::*;

// Supported arches: 6, 7-M. See Section 10.1 of ACLE (e.g. SSAT)
#[cfg(all(
not(target_arch = "aarch64"),
target_feature = "v6",
))]
mod sat;

#[cfg(all(
not(target_arch = "aarch64"),
target_feature = "v6",
))]
pub use self::sat::*;

// Deprecated in ACLE 2.0 for the A profile but fully supported on the M and R profiles, says
// Section 5.4.9 of ACLE. We'll expose these for the A profile even if deprecated
#[cfg(all(
Expand Down
8 changes: 8 additions & 0 deletions crates/core_arch/src/acle/sat.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//! # References:
//!
//! - Section 8.4 "Saturating intrinsics"
//!
//! Intrinsics that could live here:
//!
//! - __ssat
//! - __usat

0 comments on commit 4987923

Please sign in to comment.