fix bug: use AT&T instead of Intel style
This commit is contained in:
parent
93257508ee
commit
0ba7e146ab
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ static inline uint32_t last_set(uint32_t i)
|
|||
|
||||
if (!i)
|
||||
return 0;
|
||||
asm volatile ("bsr %0, %1" : "=r"(ret) : "r"(i));
|
||||
asm volatile ("bsr %1, %0" : "=r"(ret) : "r"(i) : "flags");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue