]> git.lizzy.rs Git - rust.git/blob - library/core/src/arch.rs
Run the tools builder on all PRs
[rust.git] / library / core / src / arch.rs
1 #![doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")]
2
3 #[stable(feature = "simd_arch", since = "1.27.0")]
4 pub use crate::core_arch::arch::*;
5
6 /// Inline assembly.
7 ///
8 /// Refer to [rust by example] for a usage guide and the [reference] for
9 /// detailed information about the syntax and available options.
10 ///
11 /// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
12 /// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
13 #[stable(feature = "asm", since = "1.59.0")]
14 #[rustc_builtin_macro]
15 pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
16     /* compiler built-in */
17 }
18
19 /// Module-level inline assembly.
20 ///
21 /// Refer to [rust by example] for a usage guide and the [reference] for
22 /// detailed information about the syntax and available options.
23 ///
24 /// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
25 /// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
26 #[stable(feature = "global_asm", since = "1.59.0")]
27 #[rustc_builtin_macro]
28 pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) {
29     /* compiler built-in */
30 }