Skip to content

Commit

Permalink
generate docs for Cortex-M / Cortex-R intrinsics (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric authored and alexcrichton committed Jul 24, 2018
1 parent 2760409 commit 05c2f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions coresimd/arm/cmsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub unsafe fn __set_PRIMASK(pri_mask: u32) {
asm!("msr PRIMASK, $0" : : "r"(pri_mask) : : "volatile");
}

#[cfg(target_feature = "v7")]
#[cfg(any(target_feature = "v7", dox))]
mod v7 {
/// Enable FIQ
///
Expand Down Expand Up @@ -245,7 +245,7 @@ mod v7 {
}
}

#[cfg(target_feature = "v7")]
#[cfg(any(target_feature = "v7", dox))]
pub use self::v7::*;

/* Core instruction access */
Expand Down
8 changes: 4 additions & 4 deletions coresimd/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics
#![allow(non_camel_case_types)]

#[cfg(target_feature = "mclass")]
#[cfg(any(target_feature = "mclass", dox))]
mod cmsis;
#[cfg(target_feature = "mclass")]
#[cfg(any(target_feature = "mclass", dox))]
pub use self::cmsis::*;

mod v6;
Expand All @@ -20,9 +20,9 @@ mod v7;
#[cfg(any(target_arch = "aarch64", target_feature = "v7"))]
pub use self::v7::*;

#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
mod dsp;
#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
pub use self::dsp::*;

// NEON is supported on AArch64, and on ARM when built with the v7 and neon
Expand Down

0 comments on commit 05c2f61

Please sign in to comment.