We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e2225 commit d180a2bCopy full SHA for d180a2b
src/arch/x86_64/processor.rs
@@ -19,9 +19,9 @@ pub fn msb(value: u64) -> Option<u64> {
19
let ret: u64;
20
unsafe {
21
asm!("bsr {0}, {1}",
22
- out(reg) ret,
+ out(reg) ret,
23
in(reg) value,
24
- options(nomem, nostack)
+ options(nomem, nostack)
25
);
26
}
27
Some(ret)
@@ -37,9 +37,9 @@ pub fn lsb(value: u64) -> Option<u64> {
37
38
39
asm!("bsf {0}, {1}",
40
41
42
43
44
45
0 commit comments