Home
last modified time | relevance | path

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

12

/sysdeps/powerpc/
A Datomic-machine.h55 __typeof (mem) __memp = (mem); \
72 __typeof (mem) __memp = (mem); \
95 : "b" (mem), "r" (value), "m" (*mem) \
108 : "b" (mem), "r" (value), "m" (*mem) \
121 : "b" (mem), "r" (value), "m" (*mem) \
135 : "b" (mem), "r" (value), "m" (*mem) \
149 : "b" (mem), "r" (value), "m" (*mem) \
162 : "b" (mem), "m" (*mem) \
175 : "b" (mem), "m" (*mem) \
190 : "b" (mem), "m" (*mem) \
[all …]
/sysdeps/microblaze/
A Datomic-machine.h30 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
39 __typeof (mem) __memp = (mem); \
63 (abort (), (__typeof (*mem)) 0)
92 __typeof (mem) __memp = (mem); \
112 (abort (), (__typeof (*mem)) 0)
141 __typeof (mem) __memp = (mem); \
162 (abort (), (__typeof (*mem)) 0)
199 (abort (), (__typeof (*mem)) 0)
213 #define atomic_increment(mem) ({ atomic_increment_val (mem); (void) 0; }) argument
238 (abort (), (__typeof (*mem)) 0)
[all …]
/sysdeps/x86/
A Datomic-machine.h111 ({ __typeof (*mem) ret = *(mem); \
118 ({ __typeof (*mem) ret = *(mem); \
127 __typeof (mem) __memp = (mem); \
139 __typeof (mem) __memp = (mem); \
214 mem, value)
332 #define atomic_increment(mem) __arch_increment_body (LOCK_PREFIX, __arch, mem) argument
390 #define atomic_decrement(mem) __arch_decrement_body (LOCK_PREFIX, __arch, mem) argument
499 #define atomic_and(mem, mask) __arch_and_body (LOCK_PREFIX, mem, mask) argument
501 #define catomic_and(mem, mask) __arch_and_body (__arch_cprefix, mem, mask) argument
530 #define atomic_or(mem, mask) __arch_or_body (LOCK_PREFIX, mem, mask) argument
[all …]
/sysdeps/m68k/m680x0/m68020/
A Datomic-machine.h47 __typeof (mem) __memp = (mem); \
56 ({ __typeof (*(mem)) __result = *(mem); \
74 __typeof (mem) __memp = (mem); \
86 ({ __typeof (*(mem)) __result = *(mem); \
114 __typeof (mem) __memp = (mem); \
131 : "+m" (*(mem)) \
135 : "+m" (*(mem)) \
139 : "+m" (*(mem)) \
143 __typeof (mem) __memp = (mem); \
173 __typeof (mem) __memp = (mem); \
[all …]
/sysdeps/s390/
A Datomic-machine.h52 typeof ((__typeof (*(mem))) *(mem)) __atg1_oldval = (oldval); \
59 typeof ((__typeof (*(mem))) *(mem)) __atg1_2_oldval = (oldval); \
69 typeof ((__typeof (*(mem))) *(mem)) __atg2_oldval = (oldval); \
103 #define atomic_or(mem, mask) \ argument
105 atomic_or_val (mem, mask); \
107 #define catomic_or(mem, mask) \ argument
108 atomic_or (mem, mask)
116 __typeof (mem) __atg14_memp = (mem); \
117 __typeof (*(mem)) __atg14_mask = ((__typeof (*(mem))) 1 << (bit)); \
128 #define atomic_and(mem, mask) \ argument
[all …]
/sysdeps/unix/sysv/linux/sh/
A Datomic-machine.h46 ({ __typeof (*(mem)) __result; \
104 if (sizeof (*(mem)) == 1) \
145 __typeof (mem) memp = (mem); \
154 #define atomic_add(mem, value) \ argument
156 if (sizeof (*(mem)) == 1) \
194 __typeof (*(mem)) oldval; \
195 __typeof (mem) memp = (mem); \
302 #define atomic_increment_and_test(mem) atomic_add_zero((mem), 1) argument
303 #define atomic_decrement_and_test(mem) atomic_add_zero((mem), -1) argument
317 : : "u" (mem), "u" (__mask) \
[all …]
A Dlowlevel-atomic.h26 #define INC(mem, reg) \ argument
31 98: mov.l mem, reg; \
33 mov.l reg, mem; \
41 98: mov.l mem, reg; \
43 mov.l reg, mem; \
52 98: mov.l mem, old; \
55 mov.l tmp, mem; \
64 98: mov.l mem, old; \
65 mov.l reg, mem; \
74 98: mov.l mem, old; \
[all …]
/sysdeps/powerpc/powerpc64/
A Datomic-machine.h85 __typeof (mem) __memp = (mem); \
102 __typeof (mem) __memp = (mem); \
118 __typeof (*mem) __val; \
125 : "b" (mem), "r" (value), "m" (*mem) \
138 : "b" (mem), "r" (value), "m" (*mem) \
151 : "b" (mem), "r" (value), "m" (*mem) \
165 : "b" (mem), "r" (value), "m" (*mem) \
179 : "b" (mem), "r" (value), "m" (*mem) \
192 : "b" (mem), "m" (*mem) \
205 : "b" (mem), "m" (*mem) \
[all …]
/sysdeps/unix/sysv/linux/riscv/
A Datomic-machine.h97 mem, new, old, __ATOMIC_ACQUIRE)
130 __atomic_fetch_add (mem, value, model)
152 __atomic_check_size (mem); \
153 typeof (*mem) __tmp; \
156 : "=r" (__tmp), "+A" (* (mem)) \
160 : "=r" (__tmp), "+A" (* (mem)) \
166 # define atomic_max(mem, value) asm_amo ("amomaxu", ".aq", mem, value) argument
167 # define atomic_min(mem, value) asm_amo ("amominu", ".aq", mem, value) argument
170 ({ typeof (*mem) __mask = (typeof (*mem))1 << (bit); \
174 atomic_exchange_and_add (mem, value)
[all …]
/sysdeps/aarch64/
A Datomic-machine.h31 typeof (*mem) __oldval = (oldval); \
38 typeof (*mem) __oldval = (oldval); \
45 typeof (*mem) __oldval = (oldval); \
94 mem, new, old, __ATOMIC_ACQUIRE)
98 mem, new, old, __ATOMIC_ACQUIRE)
110 __atomic_exchange_n (mem, newval, model)
113 __atomic_exchange_n (mem, newval, model)
131 __atomic_fetch_add (mem, value, model)
134 __atomic_fetch_add (mem, value, model)
137 __atomic_fetch_add (mem, value, model)
[all …]
/sysdeps/mips/
A Datomic-machine.h72 (abort (), (typeof(*mem)) 0)
75 (abort (), (typeof(*mem)) 0)
90 (abort (), (typeof(*mem)) 0)
102 mem, new, old, __ATOMIC_ACQUIRE)
118 (abort (), (typeof(*mem)) 0)
121 (abort (), (typeof(*mem)) 0)
129 (abort (), (typeof(*mem)) 0)
145 (abort (), (typeof(*mem)) 0)
148 (abort (), (typeof(*mem)) 0)
151 __atomic_fetch_add (mem, value, model)
[all …]
/sysdeps/ia64/
A Datomic-machine.h42 (abort (), (__typeof (*mem)) 0)
45 (abort (), (__typeof (*mem)) 0)
55 #define atomic_exchange_acq(mem, value) \ argument
56 __sync_lock_test_and_set (mem, value)
58 #define atomic_exchange_rel(mem, value) \ argument
62 __sync_fetch_and_add ((mem), (value))
64 #define atomic_decrement_if_positive(mem) \ argument
66 __typeof (mem) __memp = (mem); \
80 #define atomic_bit_test_set(mem, bit) \ argument
82 __typeof (mem) __memp = (mem); \
[all …]
/sysdeps/powerpc/powerpc32/
A Datomic-machine.h68 (abort (), (__typeof (*mem)) 0)
71 (abort (), (__typeof (*mem)) 0)
74 ({ abort (); (*mem) = (value); })
77 ({ abort (); (*mem) = (value); })
80 ({ abort (); (*mem) = (value); })
83 ({ abort (); (*mem) = (value); })
86 ({ abort (); (*mem) = (value); })
88 #define __arch_atomic_increment_val_64(mem) \ argument
89 ({ abort (); (*mem)++; })
92 ({ abort (); (*mem)--; })
[all …]
/sysdeps/arm/
A Datomic-machine.h50 # define __arch_exchange_8_int(mem, newval, model) \ argument
51 (__arm_link_error (), (typeof (*mem)) 0)
53 # define __arch_exchange_16_int(mem, newval, model) \ argument
54 (__arm_link_error (), (typeof (*mem)) 0)
56 # define __arch_exchange_32_int(mem, newval, model) \ argument
57 __atomic_exchange_n (mem, newval, model)
59 # define __arch_exchange_64_int(mem, newval, model) \ argument
60 (__arm_link_error (), (typeof (*mem)) 0)
66 mem, new, old, __ATOMIC_ACQUIRE)
70 mem, new, old, __ATOMIC_ACQUIRE)
[all …]
/sysdeps/unix/sysv/linux/hppa/
A Datomic-machine.h30 #define __atomic_check_size_ls(mem) \ argument
31 if ((sizeof (*mem) != 1) && (sizeof (*mem) != 2) && sizeof (*mem) != 4) \
34 #define atomic_load_relaxed(mem) \ argument
36 __atomic_load_n ((mem), __ATOMIC_RELAXED); })
37 #define atomic_load_acquire(mem) \ argument
39 __atomic_load_n ((mem), __ATOMIC_ACQUIRE); })
41 #define atomic_store_relaxed(mem, val) \ argument
46 #define atomic_store_release(mem, val) \ argument
72 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
95 #define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \ argument
[all …]
/sysdeps/csky/
A Datomic-machine.h34 typeof (*mem) __oldval = (oldval); \
35 !__atomic_compare_exchange_n (mem, (void *) &__oldval, newval, 0, \
43 (abort (), (__typeof (*mem)) 0)
46 (abort (), (__typeof (*mem)) 0)
50 typeof (*mem) __oldval = (oldval); \
51 __atomic_compare_exchange_n (mem, (void *) &__oldval, newval, 0, \
57 (abort (), (__typeof (*mem)) 0)
59 #define atomic_compare_and_exchange_bool_acq(mem, new, old) \ argument
61 mem, new, old, __ATOMIC_ACQUIRE)
63 #define atomic_compare_and_exchange_val_acq(mem, new, old) \ argument
[all …]
/sysdeps/alpha/
A Datomic-machine.h56 : [__addr8] "r" (mem), \
84 : [__addr16] "r" (mem), \
104 : [__mem] "m" (*(mem)), \
124 : [__mem] "m" (*(mem)), \
158 (typeof (*mem))__prev; })
163 (typeof (*mem))__prev; })
168 (typeof (*mem))__prev; })
173 (typeof (*mem))__prev; })
212 : [__addr8] "r" (mem), \
235 : [__addr16] "r" (mem), \
[all …]
/sysdeps/arc/
A 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
37 (abort (), (__typeof (*mem)) 0)
39 (abort (), (__typeof (*mem)) 0)
41 (abort (), (__typeof (*mem)) 0)
45 typeof (*mem) __oldval = (oldval); \
46 __atomic_compare_exchange_n (mem, (void *) &__oldval, newval, 0, \
51 #define atomic_compare_and_exchange_val_acq(mem, new, old) \ argument
[all …]
/sysdeps/unix/sysv/linux/nios2/
A Datomic-machine.h28 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ argument
29 (abort (), (__typeof (*mem)) 0)
30 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ argument
31 (abort (), (__typeof (*mem)) 0)
32 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
33 (abort (), (__typeof (*mem)) 0)
35 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \ argument
42 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
45 register int* r4 asm ("r4") = (int*)(mem); \
64 (__typeof (*(mem))) retval; \
[all …]
/sysdeps/generic/
A Datomic-machine.h26 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
27 ({ __typeof (mem) __gmemp = (mem); \
28 __typeof (*mem) __gret = *__gmemp; \
29 __typeof (*mem) __gnewval = (newval); \
35 #define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \ argument
36 ({ __typeof (mem) __gmemp = (mem); \
37 __typeof (*mem) __gnewval = (newval); \
/sysdeps/m68k/coldfire/
A Datomic-machine.h29 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
30 ({ __typeof (mem) __gmemp = (mem); \
31 __typeof (*mem) __gret = *__gmemp; \
32 __typeof (*mem) __gnewval = (newval); \
38 #define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \ argument
39 ({ __typeof (mem) __gmemp = (mem); \
40 __typeof (*mem) __gnewval = (newval); \
/sysdeps/sparc/
A Datomic-machine.h35 #define __arch_compare_and_exchange_val_int(mem, newval, oldval, model) \ argument
37 typeof (*mem) __oldval = (oldval); \
38 __atomic_compare_exchange_n (mem, (void *) &__oldval, newval, 0, \
43 #define atomic_compare_and_exchange_val_acq(mem, new, old) \ argument
45 __typeof ((__typeof (*(mem))) *(mem)) __result; \
46 if (sizeof (*mem) == 4 \
47 || (__HAVE_64B_ATOMICS && sizeof (*mem) == 8)) \
48 __result = __arch_compare_and_exchange_val_int (mem, new, old, \
/sysdeps/unix/sysv/linux/arm/
A Datomic-machine.h62 # define __arm_assisted_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
63 ({ union { __typeof (mem) a; uint32_t v; } mem_arg = { .a = (mem) }; \
88 # define __arm_assisted_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
89 ({ union { __typeof (mem) a; uint32_t v; } mem_arg = { .a = (mem) }; \
/sysdeps/pthread/
A Dtst-cancel16.c73 char mem[sizeof (pthread_barrier_t)]; in do_test() local
74 memset (mem, '\0', sizeof (mem)); in do_test()
75 if (TEMP_FAILURE_RETRY (pwrite (fd, mem, sizeof (mem), 0)) != sizeof (mem)) in do_test()
81 void *p = mmap (NULL, sizeof (mem), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in do_test()
/sysdeps/unix/sysv/linux/m68k/coldfire/
A Datomic-machine.h33 #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \ argument
37 __typeof (mem) _mem = mem; \

Completed in 32 milliseconds

12