* src/atomic_ops/sysdeps/gcc/x86.h: Ditto.
* src/atomic_ops/sysdeps/gcc/x86_64.h: Ditto.
* src/atomic_ops/sysdeps/sunc/x86.h: Ditto.
* src/atomic_ops/sysdeps/sunc/x86_64.h: Ditto.
/* Atomic or */
#if defined(AO_HAVE_compare_and_swap_full) && !defined(AO_HAVE_or_full)
AO_INLINE void
- AO_or_full(volatile AO_t *addr, AO_t incr)
+ AO_or_full(volatile AO_t *addr, AO_t value)
{
AO_t old;
do
{
old = *addr;
}
- while (!AO_compare_and_swap_full(addr, old, old | incr));
+ while (!AO_compare_and_swap_full(addr, old, old | value));
}
# define AO_HAVE_or_full
#endif
/* Really only works for 486 and later */
AO_INLINE void
-AO_or_full (volatile AO_t *p, AO_t incr)
+AO_or_full (volatile AO_t *p, AO_t value)
{
__asm__ __volatile__ ("lock; orl %1, %0" :
- "=m" (*p) : "r" (incr), "m" (*p) : "memory");
+ "=m" (*p) : "r" (value), "m" (*p) : "memory");
}
#define AO_HAVE_or_full
#define AO_HAVE_int_fetch_and_add_full
AO_INLINE void
-AO_or_full (volatile AO_t *p, AO_t incr)
+AO_or_full (volatile AO_t *p, AO_t value)
{
__asm__ __volatile__ ("lock; orq %1, %0" :
- "=m" (*p) : "r" (incr), "m" (*p) : "memory");
+ "=m" (*p) : "r" (value), "m" (*p) : "memory");
}
#define AO_HAVE_or_full
/* Really only works for 486 and later */
AO_INLINE void
-AO_or_full (volatile AO_t *p, AO_t incr)
+AO_or_full (volatile AO_t *p, AO_t value)
{
__asm__ __volatile__ ("lock; orl %1, %0" :
- "=m" (*p) : "r" (incr) /* , "m" (*p) */
+ "=m" (*p) : "r" (value) /* , "m" (*p) */
: "memory");
}
#define AO_HAVE_or_full
#define AO_HAVE_int_fetch_and_add_full
AO_INLINE void
-AO_or_full (volatile AO_t *p, AO_t incr)
+AO_or_full (volatile AO_t *p, AO_t value)
{
__asm__ __volatile__ ("lock; orq %1, %0" :
- "=m" (*p) : "r" (incr) /* , "m" (*p) */
+ "=m" (*p) : "r" (value) /* , "m" (*p) */
: "memory");
}
#define AO_HAVE_or_full