Lines Matching refs:xchg
149 local xchg="$1"; shift
151 #ifndef ${xchg}_relaxed
152 #define ${xchg}_relaxed ${xchg}
153 #define ${xchg}_acquire ${xchg}
154 #define ${xchg}_release ${xchg}
155 #else /* ${xchg}_relaxed */
157 #ifndef ${xchg}_acquire
158 #define ${xchg}_acquire(...) \\
159 __atomic_op_acquire(${xchg}, __VA_ARGS__)
162 #ifndef ${xchg}_release
163 #define ${xchg}_release(...) \\
164 __atomic_op_release(${xchg}, __VA_ARGS__)
167 #ifndef ${xchg}
168 #define ${xchg}(...) \\
169 __atomic_op_fence(${xchg}, __VA_ARGS__)
172 #endif /* ${xchg}_relaxed */
190 for xchg in "${ARCH}xchg" "${ARCH}cmpxchg" "${ARCH}cmpxchg64"; do
191 gen_xchg_fallbacks "${xchg}"