Lines Matching refs:cmpxchg
227 local cmpxchg="$1"; shift;
234 ___r = raw_${prefix}${cmpxchg}${suffix}((_ptr), ___o, (_new)); \\
244 local cmpxchg="$1"; shift
248 printf "#if defined(arch_try_${cmpxchg}${order})\n"
249 printf "#define raw_try_${cmpxchg}${order} arch_try_${cmpxchg}${order}\n"
252 printf "#elif defined(arch_try_${cmpxchg}_relaxed)\n"
253 printf "#define raw_try_${cmpxchg}${order}(...) \\\\\n"
254 printf " __atomic_op${forder}(arch_try_${cmpxchg}, __VA_ARGS__)\n"
258 printf "#elif defined(arch_try_${cmpxchg})\n"
259 printf "#define raw_try_${cmpxchg}${order} arch_try_${cmpxchg}\n"
263 gen_try_cmpxchg_fallback "" "${cmpxchg}" "${order}"
269 local cmpxchg="$1"; shift;
272 gen_try_cmpxchg_order_fallback "${cmpxchg}" "${order}"
279 local cmpxchg="$1"; shift
282 printf "#define raw_${prefix}${cmpxchg}${suffix} arch_${prefix}${cmpxchg}${suffix}\n\n"
283 printf "#ifdef arch_${prefix}try_${cmpxchg}${suffix}\n"
284 printf "#define raw_${prefix}try_${cmpxchg}${suffix} arch_${prefix}try_${cmpxchg}${suffix}\n"
286 gen_try_cmpxchg_fallback "${prefix}" "${cmpxchg}" "${suffix}"
307 for cmpxchg in "cmpxchg" "cmpxchg64" "cmpxchg128"; do
308 gen_try_cmpxchg_order_fallbacks "${cmpxchg}"
311 for cmpxchg in "cmpxchg" "cmpxchg64" "cmpxchg128"; do
312 gen_def_and_try_cmpxchg_fallback "" "${cmpxchg}" "_local"
315 for cmpxchg in "cmpxchg"; do
316 gen_def_and_try_cmpxchg_fallback "sync_" "${cmpxchg}" ""