Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 25 of 44) sorted by relevance

12

/glibc-2.36/sysdeps/arm/
Datomic-machine.h81 # define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
84 # define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
87 # define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
89 typeof (*mem) __oldval = (oldval); \
94 # define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
97 # define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
98 ({__arm_link_error (); oldval; })
100 # define __arch_compare_and_exchange_val_16_int(mem, newval, oldval, model) \ argument
101 ({__arm_link_error (); oldval; })
103 # define __arch_compare_and_exchange_val_32_int(mem, newval, oldval, model) \ argument
[all …]
/glibc-2.36/nptl/
Dpthread_mutex_lock.c195 int oldval; in __pthread_mutex_lock_full() local
210 oldval = mutex->__data.__lock; in __pthread_mutex_lock_full()
223 if (__glibc_likely (oldval == 0)) in __pthread_mutex_lock_full()
225 oldval in __pthread_mutex_lock_full()
228 if (__glibc_likely (oldval == 0)) in __pthread_mutex_lock_full()
232 if ((oldval & FUTEX_OWNER_DIED) != 0) in __pthread_mutex_lock_full()
241 newval |= (oldval & FUTEX_WAITERS) | assume_other_futex_waiters; in __pthread_mutex_lock_full()
246 newval, oldval); in __pthread_mutex_lock_full()
248 if (newval != oldval) in __pthread_mutex_lock_full()
250 oldval = newval; in __pthread_mutex_lock_full()
[all …]
Dpthread_mutex_timedlock.c36 int oldval; in __pthread_mutex_clocklock_common() local
134 oldval = mutex->__data.__lock; in __pthread_mutex_clocklock_common()
144 if (__glibc_likely (oldval == 0)) in __pthread_mutex_clocklock_common()
146 oldval in __pthread_mutex_clocklock_common()
149 if (__glibc_likely (oldval == 0)) in __pthread_mutex_clocklock_common()
153 if ((oldval & FUTEX_OWNER_DIED) != 0) in __pthread_mutex_clocklock_common()
156 int newval = id | (oldval & FUTEX_WAITERS) in __pthread_mutex_clocklock_common()
161 newval, oldval); in __pthread_mutex_clocklock_common()
162 if (newval != oldval) in __pthread_mutex_clocklock_common()
164 oldval = newval; in __pthread_mutex_clocklock_common()
[all …]
Dpthread_mutex_trylock.c28 int oldval; in ___pthread_mutex_trylock() local
93 oldval = mutex->__data.__lock; in ___pthread_mutex_trylock()
97 if ((oldval & FUTEX_OWNER_DIED) != 0) in ___pthread_mutex_trylock()
100 int newval = id | (oldval & FUTEX_WAITERS); in ___pthread_mutex_trylock()
104 newval, oldval); in ___pthread_mutex_trylock()
106 if (newval != oldval) in ___pthread_mutex_trylock()
108 oldval = newval; in ___pthread_mutex_trylock()
133 if (__glibc_unlikely ((oldval & FUTEX_TID_MASK) == id)) in ___pthread_mutex_trylock()
163 oldval = atomic_compare_and_exchange_val_acq (&mutex->__data.__lock, in ___pthread_mutex_trylock()
165 if (oldval != 0 && (oldval & FUTEX_OWNER_DIED) == 0) in ___pthread_mutex_trylock()
[all …]
Dpthread_cancel.c45 int oldval = atomic_load_relaxed (&self->cancelhandling); in sigcancel_handler() local
51 int newval = oldval | CANCELING_BITMASK | CANCELED_BITMASK; in sigcancel_handler()
53 if (oldval == newval || (oldval & EXITING_BITMASK) != 0) in sigcancel_handler()
58 &oldval, newval)) in sigcancel_handler()
63 if ((oldval & CANCELTYPE_BITMASK) != 0) in sigcancel_handler()
120 int oldval = atomic_load_relaxed (&pd->cancelhandling); in __pthread_cancel() local
125 newval = oldval | CANCELING_BITMASK | CANCELED_BITMASK; in __pthread_cancel()
126 if (oldval == newval) in __pthread_cancel()
135 int newval2 = oldval | CANCELING_BITMASK; in __pthread_cancel()
137 &oldval, newval2)) in __pthread_cancel()
[all …]
Dcancellation.c33 int oldval = atomic_load_relaxed (&self->cancelhandling); in __pthread_enable_asynccancel() local
37 int newval = oldval | CANCELTYPE_BITMASK; in __pthread_enable_asynccancel()
39 if (newval == oldval) in __pthread_enable_asynccancel()
43 &oldval, newval)) in __pthread_enable_asynccancel()
55 return oldval; in __pthread_enable_asynccancel()
71 int oldval = atomic_load_relaxed (&self->cancelhandling); in libc_hidden_def() local
74 newval = oldval & ~CANCELTYPE_BITMASK; in libc_hidden_def()
77 &oldval, newval)); in libc_hidden_def()
Dpthread_mutex_setprioceiling.c63 int oldval = mutex->__data.__lock; in __pthread_mutex_setprioceiling() local
69 int ceilval = (oldval & PTHREAD_MUTEX_PRIO_CEILING_MASK); in __pthread_mutex_setprioceiling()
71 oldval = atomic_compare_and_exchange_val_acq (&mutex->__data.__lock, in __pthread_mutex_setprioceiling()
73 if (oldval == ceilval) in __pthread_mutex_setprioceiling()
78 oldval in __pthread_mutex_setprioceiling()
83 if ((oldval & PTHREAD_MUTEX_PRIO_CEILING_MASK) != ceilval) in __pthread_mutex_setprioceiling()
86 if (oldval != ceilval) in __pthread_mutex_setprioceiling()
94 if ((oldval & PTHREAD_MUTEX_PRIO_CEILING_MASK) != ceilval) in __pthread_mutex_setprioceiling()
99 int oldprio = (oldval & PTHREAD_MUTEX_PRIO_CEILING_MASK) in __pthread_mutex_setprioceiling()
Dpthread_setcancelstate.c33 int oldval = atomic_load_relaxed (&self->cancelhandling); in __pthread_setcancelstate() local
37 ? oldval | CANCELSTATE_BITMASK in __pthread_setcancelstate()
38 : oldval & ~CANCELSTATE_BITMASK); in __pthread_setcancelstate()
41 *oldstate = ((oldval & CANCELSTATE_BITMASK) in __pthread_setcancelstate()
44 if (oldval == newval) in __pthread_setcancelstate()
48 &oldval, newval)) in __pthread_setcancelstate()
Dpthread_setcanceltype.c31 int oldval = atomic_load_relaxed (&self->cancelhandling); in __pthread_setcanceltype() local
35 ? oldval | CANCELTYPE_BITMASK in __pthread_setcanceltype()
36 : oldval & ~CANCELTYPE_BITMASK); in __pthread_setcanceltype()
39 *oldtype = ((oldval & CANCELTYPE_BITMASK) in __pthread_setcanceltype()
42 if (oldval == newval) in __pthread_setcanceltype()
46 &oldval, newval)) in __pthread_setcanceltype()
/glibc-2.36/sysdeps/aarch64/
Datomic-machine.h29 # define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
31 typeof (*mem) __oldval = (oldval); \
36 # define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
38 typeof (*mem) __oldval = (oldval); \
43 # define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
45 typeof (*mem) __oldval = (oldval); \
50 # define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
52 typeof (*mem) __oldval = (oldval); \
57 # define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
59 typeof (*mem) __oldval = (oldval); \
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/loongarch/
Datomic-machine.h31 #define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
33 typeof (*mem) __oldval = (oldval); \
38 #define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
40 typeof (*mem) __oldval = (oldval); \
45 #define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
47 typeof (*mem) __oldval = (oldval); \
52 #define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
54 typeof (*mem) __oldval = (oldval); \
59 #define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
61 typeof (*mem) __oldval = (oldval); \
[all …]
/glibc-2.36/sysdeps/ia64/
Datomic-machine.h27 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
30 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
33 #define __arch_compare_and_exchange_bool_32_acq(mem, newval, oldval) \ argument
34 (!__sync_bool_compare_and_swap ((mem), (int) (long) (oldval), \
37 #define __arch_compare_and_exchange_bool_64_acq(mem, newval, oldval) \ argument
38 (!__sync_bool_compare_and_swap ((mem), (long) (oldval), \
41 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ argument
44 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ argument
47 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
48 __sync_val_compare_and_swap ((mem), (int) (long) (oldval), \
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/riscv/
Datomic-machine.h33 # define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
35 typeof (*mem) __oldval = (oldval); \
40 # define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
42 typeof (*mem) __oldval = (oldval); \
47 # define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
49 typeof (*mem) __oldval = (oldval); \
54 # define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
56 typeof (*mem) __oldval = (oldval); \
61 # define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
63 typeof (*mem) __oldval = (oldval); \
[all …]
/glibc-2.36/sysdeps/mips/
Datomic-machine.h58 #define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
61 #define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
64 #define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
66 typeof (*mem) __oldval = (oldval); \
71 #define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
74 #define __arch_compare_and_exchange_val_16_int(mem, newval, oldval, model) \ argument
77 #define __arch_compare_and_exchange_val_32_int(mem, newval, oldval, model) \ argument
79 typeof (*mem) __oldval = (oldval); \
87 # define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
89 # define __arch_compare_and_exchange_val_64_int(mem, newval, oldval, model) \ argument
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/nios2/
Datomic-machine.h28 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ argument
30 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ argument
32 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
35 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
37 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
39 #define __arch_compare_and_exchange_bool_64_acq(mem, newval, oldval) \ argument
42 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
48 int retval, orig_oldval = (int)(oldval); \
67 #define __arch_compare_and_exchange_bool_32_acq(mem, newval, oldval) \ argument
71 register int r5 asm ("r5") = (int)(oldval); \
/glibc-2.36/sysdeps/or1k/
Datomic-machine.h28 #define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
31 #define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
34 #define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
36 typeof (*mem) __oldval = (oldval); \
41 #define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
44 #define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
47 #define __arch_compare_and_exchange_val_16_int(mem, newval, oldval, model) \ argument
50 #define __arch_compare_and_exchange_val_32_int(mem, newval, oldval, model) \ argument
52 typeof (*mem) __oldval = (oldval); \
58 #define __arch_compare_and_exchange_val_64_int(mem, newval, oldval, model) \ argument
/glibc-2.36/sysdeps/csky/
Datomic-machine.h26 #define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ argument
29 #define __arch_compare_and_exchange_bool_16_int(mem, newval, oldval, model) \ argument
32 #define __arch_compare_and_exchange_bool_32_int(mem, newval, oldval, model) \ argument
34 typeof (*mem) __oldval = (oldval); \
39 #define __arch_compare_and_exchange_bool_64_int(mem, newval, oldval, model) \ argument
42 #define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
45 #define __arch_compare_and_exchange_val_16_int(mem, newval, oldval, model) \ argument
48 #define __arch_compare_and_exchange_val_32_int(mem, newval, oldval, model) \ argument
50 typeof (*mem) __oldval = (oldval); \
56 #define __arch_compare_and_exchange_val_64_int(mem, newval, oldval, model) \ argument
/glibc-2.36/sysdeps/unix/sysv/linux/sh/
Datomic-machine.h45 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ argument
57 : "=&r" (__result) : "u" (mem), "u" (newval), "u" (oldval) \
61 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ argument
74 : "=&r" (__result) : "u" (mem), "u" (newval), "u" (oldval) \
78 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
90 : "=&r" (__result) : "u" (mem), "u" (newval), "u" (oldval) \
99 # define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
194 __typeof (*(mem)) oldval; \
197 oldval = *memp; \
199 (memp, oldval + __value, oldval) == oldval); \
/glibc-2.36/sysdeps/arc/
Datomic-machine.h29 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
31 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
33 #define __arch_compare_and_exchange_bool_64_acq(mem, newval, oldval) \ argument
36 #define __arch_compare_and_exchange_val_8_int(mem, newval, oldval, model) \ argument
38 #define __arch_compare_and_exchange_val_16_int(mem, newval, oldval, model) \ argument
40 #define __arch_compare_and_exchange_val_64_int(mem, newval, oldval, model) \ argument
43 #define __arch_compare_and_exchange_val_32_int(mem, newval, oldval, model) \ argument
45 typeof (*mem) __oldval = (oldval); \
/glibc-2.36/sysdeps/microblaze/
Datomic-machine.h30 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
33 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
36 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
56 "r" (oldval), \
62 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
65 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
69 __result = __arch_compare_and_exchange_val_32_acq (mem, newval, oldval); \
71 __result = __arch_compare_and_exchange_val_64_acq (mem, newval, oldval); \
77 #define atomic_compare_and_exchange_val_rel(mem, newval, oldval) \ argument
81 __result = __arch_compare_and_exchange_val_32_acq (mem, newval, oldval); \
[all …]
/glibc-2.36/sysdeps/powerpc/
Datomic-machine.h32 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
35 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
52 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
64 : "b" (__memp), "r" (oldval), "r" (newval) \
69 #define __arch_compare_and_exchange_val_32_rel(mem, newval, oldval) \ argument
81 : "b" (__memp), "r" (oldval), "r" (newval) \
195 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
199 __result = __arch_compare_and_exchange_val_32_acq(mem, newval, oldval); \
201 __result = __arch_compare_and_exchange_val_64_acq(mem, newval, oldval); \
207 #define atomic_compare_and_exchange_val_rel(mem, newval, oldval) \ argument
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/arm/
Datomic-machine.h62 # define __arm_assisted_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
64 union { __typeof (oldval) a; uint32_t v; } oldval_arg = { .a = (oldval) };\
86 (__typeof (oldval)) a_tmp; })
88 # define __arm_assisted_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
90 union { __typeof (oldval) a; uint32_t v; } oldval_arg = { .a = (oldval) };\
112 (__typeof (oldval)) a_tmp; })
/glibc-2.36/include/
Datomic.h90 # define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
92 mem, newval, oldval)
98 # define catomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
100 mem, newval, oldval)
102 # define catomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
103 atomic_compare_and_exchange_val_acq (mem, newval, oldval)
110 # define catomic_compare_and_exchange_val_rel(mem, newval, oldval) \ argument
111 catomic_compare_and_exchange_val_acq (mem, newval, oldval)
113 # define catomic_compare_and_exchange_val_rel(mem, newval, oldval) \ argument
114 atomic_compare_and_exchange_val_rel (mem, newval, oldval)
[all …]
/glibc-2.36/sysdeps/s390/
Datomic-machine.h50 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
52 typeof ((__typeof (*(mem))) *(mem)) __atg1_oldval = (oldval); \
57 #define atomic_compare_and_exchange_val_rel(mem, newval, oldval) \ argument
59 typeof ((__typeof (*(mem))) *(mem)) __atg1_2_oldval = (oldval); \
67 #define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \ argument
69 typeof ((__typeof (*(mem))) *(mem)) __atg2_oldval = (oldval); \
73 #define catomic_compare_and_exchange_bool_acq(mem, newval, oldval) \ argument
74 atomic_compare_and_exchange_bool_acq (mem, newval, oldval)
/glibc-2.36/sysdeps/powerpc/powerpc64/
Datomic-machine.h45 #define __arch_compare_and_exchange_bool_32_acq(mem, newval, oldval) \ argument
56 : "b" (mem), "1" (oldval), "r" (newval) \
66 #define __arch_compare_and_exchange_bool_64_acq(mem, newval, oldval) \ argument
77 : "b" (mem), "r" (oldval), "r" (newval) \
82 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
94 : "b" (__memp), "r" (oldval), "r" (newval) \
99 #define __arch_compare_and_exchange_val_64_rel(mem, newval, oldval) \ argument
111 : "b" (__memp), "r" (oldval), "r" (newval) \

12