mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Removed gasm-specific mnemonic suffixes to make code compilable by clang.
This commit is contained in:
@@ -40,7 +40,7 @@ class Atomic
|
||||
static inline bool test_set_bit (T &val, unsigned long bit)
|
||||
{
|
||||
bool ret;
|
||||
asm volatile ("lock; bts%z1 %2, %1; setc %0" : "=q" (ret), "+m" (val) : "ir" (bit) : "cc");
|
||||
asm volatile ("lock; bts %2, %1; setc %0" : "=q" (ret), "+m" (val) : "ir" (bit) : "cc");
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class Atomic
|
||||
static inline bool test_clr_bit (T &val, unsigned long bit)
|
||||
{
|
||||
bool ret;
|
||||
asm volatile ("lock; btr%z1 %2, %1; setc %0" : "=q" (ret), "+m" (val) : "ir" (bit) : "cc");
|
||||
asm volatile ("lock; btr %2, %1; setc %0" : "=q" (ret), "+m" (val) : "ir" (bit) : "cc");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user