mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
Merge branch 'fix-gbitlock-asm' into 'master'
gbitlock.c: replace remaining 'asm' with '__asm__' Closes #2344 See merge request GNOME/glib!1979
This commit is contained in:
commit
e401825d77
@ -322,7 +322,7 @@ g_bit_unlock (volatile gint *address,
|
||||
gint lock_bit)
|
||||
{
|
||||
#ifdef USE_ASM_GOTO
|
||||
asm volatile ("lock btr %1, (%0)"
|
||||
__asm__ volatile ("lock btr %1, (%0)"
|
||||
: /* no output */
|
||||
: "r" (address), "r" (lock_bit)
|
||||
: "cc", "memory");
|
||||
@ -405,7 +405,7 @@ void
|
||||
{
|
||||
#ifdef USE_ASM_GOTO
|
||||
retry:
|
||||
asm volatile goto ("lock bts %1, (%0)\n"
|
||||
__asm__ volatile goto ("lock bts %1, (%0)\n"
|
||||
"jc %l[contended]"
|
||||
: /* no output */
|
||||
: "r" (address), "r" ((gsize) lock_bit)
|
||||
@ -477,7 +477,7 @@ gboolean
|
||||
#ifdef USE_ASM_GOTO
|
||||
gboolean result;
|
||||
|
||||
asm volatile ("lock bts %2, (%1)\n"
|
||||
__asm__ volatile ("lock bts %2, (%1)\n"
|
||||
"setnc %%al\n"
|
||||
"movzx %%al, %0"
|
||||
: "=r" (result)
|
||||
@ -520,7 +520,7 @@ void
|
||||
|
||||
{
|
||||
#ifdef USE_ASM_GOTO
|
||||
asm volatile ("lock btr %1, (%0)"
|
||||
__asm__ volatile ("lock btr %1, (%0)"
|
||||
: /* no output */
|
||||
: "r" (address), "r" ((gsize) lock_bit)
|
||||
: "cc", "memory");
|
||||
|
Loading…
Reference in New Issue
Block a user