mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Rename __asm to __asm__ and __volatile to __volatile__ to make the file
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de> * glib/gatomic.c: Rename __asm to __asm__ and __volatile to __volatile__ to make the file consistent. Spotted by Benoit Carpentier <gtkool_2kx@yahoo.fr>.
This commit is contained in:
parent
14892c1dc8
commit
906a83b7f6
@ -1,3 +1,9 @@
|
||||
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
|
||||
__volatile__ to make the file consistent. Spotted by Benoit
|
||||
Carpentier <gtkool_2kx@yahoo.fr>.
|
||||
|
||||
2004-07-01 John Ehresman <jpe@wingide.com>
|
||||
|
||||
* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
|
||||
__volatile__ to make the file consistent. Spotted by Benoit
|
||||
Carpentier <gtkool_2kx@yahoo.fr>.
|
||||
|
||||
2004-07-01 John Ehresman <jpe@wingide.com>
|
||||
|
||||
* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
|
||||
__volatile__ to make the file consistent. Spotted by Benoit
|
||||
Carpentier <gtkool_2kx@yahoo.fr>.
|
||||
|
||||
2004-07-01 John Ehresman <jpe@wingide.com>
|
||||
|
||||
* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
|
||||
__volatile__ to make the file consistent. Spotted by Benoit
|
||||
Carpentier <gtkool_2kx@yahoo.fr>.
|
||||
|
||||
2004-07-01 John Ehresman <jpe@wingide.com>
|
||||
|
||||
* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
|
||||
|
||||
* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
|
||||
__volatile__ to make the file consistent. Spotted by Benoit
|
||||
Carpentier <gtkool_2kx@yahoo.fr>.
|
||||
|
||||
2004-07-01 John Ehresman <jpe@wingide.com>
|
||||
|
||||
* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
|
||||
|
@ -56,7 +56,7 @@ g_atomic_int_compare_and_exchange (gint *atomic,
|
||||
{
|
||||
gint result;
|
||||
|
||||
__asm __volatile ("lock; cmpxchgl %2, %1"
|
||||
__asm__ __volatile__ ("lock; cmpxchgl %2, %1"
|
||||
: "=a" (result), "=m" (*atomic)
|
||||
: "r" (newval), "m" (*atomic), "0" (oldval));
|
||||
|
||||
@ -74,7 +74,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
{
|
||||
gpointer result;
|
||||
|
||||
__asm __volatile ("lock; cmpxchgl %2, %1"
|
||||
__asm__ __volatile__ ("lock; cmpxchgl %2, %1"
|
||||
: "=a" (result), "=m" (*atomic)
|
||||
: "r" (newval), "m" (*atomic), "0" (oldval));
|
||||
|
||||
@ -87,9 +87,9 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
# define ATOMIC_INT_CMP_XCHG(atomic, oldval, newval) \
|
||||
({ \
|
||||
gint __result; \
|
||||
__asm __volatile ("cas [%4], %2, %0" \
|
||||
__asm__ __volatile__ ("cas [%4], %2, %0" \
|
||||
: "=r" (__result), "=m" (*(atomic)) \
|
||||
: "r" (oldval), "m" (*(atomic)), "r" (atomic), \
|
||||
: "r" (oldval), "m" (*(atomic)), "r" (atomic),\
|
||||
"0" (newval)); \
|
||||
__result == oldval; \
|
||||
})
|
||||
@ -101,7 +101,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
gpointer newval)
|
||||
{
|
||||
gpointer result;
|
||||
__asm __volatile ("cas [%4], %2, %0"
|
||||
__asm__ __volatile__ ("cas [%4], %2, %0"
|
||||
: "=r" (result), "=m" (*atomic)
|
||||
: "r" (oldval), "m" (*atomic), "r" (atomic),
|
||||
"0" (newval));
|
||||
@ -115,7 +115,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
{
|
||||
gpointer result;
|
||||
gpointer *a = atomic;
|
||||
__asm __volatile ("casx [%4], %2, %0"
|
||||
__asm__ __volatile__ ("casx [%4], %2, %0"
|
||||
: "=r" (result), "=m" (*a)
|
||||
: "r" (oldval), "m" (*a), "r" (a),
|
||||
"0" (newval));
|
||||
@ -125,7 +125,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
# error "Your system has an unsupported pointer size"
|
||||
# endif /* GLIB_SIZEOF_VOID_P */
|
||||
# define G_ATOMIC_MEMORY_BARRIER \
|
||||
__asm __volatile ("membar #LoadLoad | #LoadStore" \
|
||||
__asm__ __volatile__ ("membar #LoadLoad | #LoadStore" \
|
||||
" | #StoreLoad | #StoreStore" : : : "memory")
|
||||
|
||||
# elif defined (G_ATOMIC_ALPHA)
|
||||
@ -208,7 +208,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
# else /* What's that */
|
||||
# error "Your system has an unsupported pointer size"
|
||||
# endif /* GLIB_SIZEOF_VOID_P */
|
||||
# define G_ATOMIC_MEMORY_BARRIER __asm ("mb" : : : "memory")
|
||||
# define G_ATOMIC_MEMORY_BARRIER __asm__ ("mb" : : : "memory")
|
||||
# elif defined (G_ATOMIC_X86_64)
|
||||
/* Adapted from CVS version 1.9 of glibc's sysdeps/x86_64/bits/atomic.h
|
||||
*/
|
||||
@ -240,7 +240,7 @@ g_atomic_int_compare_and_exchange (gint *atomic,
|
||||
{
|
||||
gint result;
|
||||
|
||||
__asm __volatile ("lock; cmpxchgl %2, %1"
|
||||
__asm__ __volatile__ ("lock; cmpxchgl %2, %1"
|
||||
: "=a" (result), "=m" (*atomic)
|
||||
: "r" (newval), "m" (*atomic), "0" (oldval));
|
||||
|
||||
@ -254,7 +254,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
{
|
||||
gpointer result;
|
||||
|
||||
__asm __volatile ("lock; cmpxchgq %q2, %1"
|
||||
__asm__ __volatile__ ("lock; cmpxchgq %q2, %1"
|
||||
: "=a" (result), "=m" (*atomic)
|
||||
: "r" (newval), "m" (*atomic), "0" (oldval));
|
||||
|
||||
@ -274,7 +274,7 @@ g_atomic_int_exchange_and_add (gint *atomic,
|
||||
gint val)
|
||||
{
|
||||
gint result, temp;
|
||||
__asm __volatile ("1: lwarx %0,0,%3\n"
|
||||
__asm__ __volatile__ ("1: lwarx %0,0,%3\n"
|
||||
" add %1,%0,%4\n"
|
||||
" stwcx. %1,0,%3\n"
|
||||
" bne- 1b"
|
||||
@ -290,7 +290,7 @@ g_atomic_int_add (gint *atomic,
|
||||
gint val)
|
||||
{
|
||||
gint result, temp;
|
||||
__asm __volatile ("1: lwarx %0,0,%3\n"
|
||||
__asm__ __volatile__ ("1: lwarx %0,0,%3\n"
|
||||
" add %1,%0,%4\n"
|
||||
" stwcx. %1,0,%3\n"
|
||||
" bne- 1b"
|
||||
@ -329,7 +329,7 @@ g_atomic_int_compare_and_exchange (gint *atomic,
|
||||
gint newval)
|
||||
{
|
||||
gint result;
|
||||
__asm __volatile ("sync\n"
|
||||
__asm__ __volatile__ ("sync\n"
|
||||
"1: lwarx %0,0,%1\n"
|
||||
" subf. %0,%2,%0\n"
|
||||
" bne 2f\n"
|
||||
@ -348,7 +348,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
gpointer newval)
|
||||
{
|
||||
gpointer result;
|
||||
__asm __volatile ("sync\n"
|
||||
__asm__ __volatile__ ("sync\n"
|
||||
"1: lwarx %0,0,%1\n"
|
||||
" subf. %0,%2,%0\n"
|
||||
" bne 2f\n"
|
||||
@ -367,7 +367,7 @@ g_atomic_int_compare_and_exchange (gint *atomic,
|
||||
gint newval)
|
||||
{
|
||||
gpointer result;
|
||||
__asm __volatile ("sync\n"
|
||||
__asm__ __volatile__ ("sync\n"
|
||||
"1: lwarx %0,0,%1\n"
|
||||
" extsw %0,%0\n"
|
||||
" subf. %0,%2,%0\n"
|
||||
@ -387,7 +387,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
gpointer newval)
|
||||
{
|
||||
gpointer result;
|
||||
__asm __volatile ("sync\n"
|
||||
__asm__ __volatile__ ("sync\n"
|
||||
"1: ldarx %0,0,%1\n"
|
||||
" subf. %0,%2,%0\n"
|
||||
" bne 2f\n"
|
||||
@ -403,7 +403,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
|
||||
# error "Your system has an unsupported pointer size"
|
||||
# endif /* GLIB_SIZEOF_VOID_P */
|
||||
|
||||
# define G_ATOMIC_MEMORY_BARRIER __asm ("sync" : : : "memory")
|
||||
# define G_ATOMIC_MEMORY_BARRIER __asm__ ("sync" : : : "memory")
|
||||
|
||||
# elif defined (G_ATOMIC_IA64)
|
||||
/* Adapted from CVS version 1.8 of glibc's sysdeps/ia64/bits/atomic.h
|
||||
|
Loading…
Reference in New Issue
Block a user