Skip to content

Commit

Permalink
acle/hints: use asm! for __nop
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 33f51f2 commit 2c8c8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core_arch/src/acle/hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub unsafe fn __dbg(imm4: u32) {
/// will increase execution time.
#[inline(always)]
pub unsafe fn __nop() {
hint(HINT_NOP);
asm!("NOP" : : : : "volatile")
}

extern "C" {
Expand Down

0 comments on commit 2c8c8f0

Please sign in to comment.