Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jun 25, 2022
1 parent 5ce5a7b commit a9f88db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ macro_rules! atomic128 {
//
// Refs: https://www.felixcloutier.com/x86/cmpxchg8b:cmpxchg16b
unsafe {
// atomic store is always SeqCst.
// atomic swap is always SeqCst.
asm!(
// rbx is reserved by LLVM
"xchg {rbx_tmp}, rbx",
Expand All @@ -292,7 +292,7 @@ macro_rules! atomic128 {
// operations of different sizes.
concat!("mov rax, qword ptr [", $rdi, "]"),
concat!("mov rdx, qword ptr [", $rdi, " + 8]"),
// (atomic) store by CAS loop
// (atomic) swap by CAS loop
"2:",
concat!("lock cmpxchg16b xmmword ptr [", $rdi, "]"),
"jne 2b",
Expand Down

0 comments on commit a9f88db

Please sign in to comment.