Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/inline-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The compiler will emit an error if `asm!` is used on an unsupported target.
## Example

```rust
# #[cfg(target_arch = "x86_64")] {
use std::arch::asm;

// Multiply x by 6 using shifts and adds
Expand All @@ -32,6 +33,7 @@ unsafe {
);
}
assert_eq!(x, 4 * 6);
# }
```

## Syntax
Expand Down