Skip to content

Commit 05c2f61

Browse files
japaricalexcrichton
authored andcommitted
generate docs for Cortex-M / Cortex-R intrinsics (#536)
1 parent 2760409 commit 05c2f61

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

coresimd/arm/cmsis.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub unsafe fn __set_PRIMASK(pri_mask: u32) {
164164
asm!("msr PRIMASK, $0" : : "r"(pri_mask) : : "volatile");
165165
}
166166

167-
#[cfg(target_feature = "v7")]
167+
#[cfg(any(target_feature = "v7", dox))]
168168
mod v7 {
169169
/// Enable FIQ
170170
///
@@ -245,7 +245,7 @@ mod v7 {
245245
}
246246
}
247247

248-
#[cfg(target_feature = "v7")]
248+
#[cfg(any(target_feature = "v7", dox))]
249249
pub use self::v7::*;
250250

251251
/* Core instruction access */

coresimd/arm/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics
88
#![allow(non_camel_case_types)]
99

10-
#[cfg(target_feature = "mclass")]
10+
#[cfg(any(target_feature = "mclass", dox))]
1111
mod cmsis;
12-
#[cfg(target_feature = "mclass")]
12+
#[cfg(any(target_feature = "mclass", dox))]
1313
pub use self::cmsis::*;
1414

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

23-
#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
23+
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
2424
mod dsp;
25-
#[cfg(all(target_feature = "v7", not(target_feature = "mclass")))]
25+
#[cfg(any(all(target_feature = "v7", not(target_feature = "mclass")), dox))]
2626
pub use self::dsp::*;
2727

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

0 commit comments

Comments
 (0)