| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | cat <<EOF |
| 2 | static inline ${ret} | ||||
| 3 | ${atomic}_${pfx}${name}${sfx}(${params}) | ||||
| 4 | { | ||||
| 5 | ${ret} ret; | ||||
| 6 | __atomic_pre_full_fence(); | ||||
| 7 | ret = ${atomic}_${pfx}${name}${sfx}_relaxed(${args}); | ||||
| 8 | __atomic_post_full_fence(); | ||||
| 9 | return ret; | ||||
| 10 | } | ||||
| 11 | EOF | ||||