Update inline-asm.md

pull/1574/head
炽热金刚 1 month ago committed by GitHub
parent 90f814fc72
commit 3c2571e585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -177,7 +177,7 @@ fn mul(a: u64, b: u64) -> u128 {
unsafe { unsafe {
asm!( asm!(
// The x86 mul instruction takes rax as an implicit input and writes // The x86 mul instruction takes rax as an implicit input and writes
// the 128-bit result of the multiplication to rax:rdx. // the 128-bit result of the multiplication to rdx:rax.
"mul {}", "mul {}",
in(reg) a, in(reg) a,
inlateout("rax") b => lo, inlateout("rax") b => lo,

Loading…
Cancel
Save