blob: 07757d8e338ef5f1fcb81a630e97650d3bce5811 [file] [log] [blame]
Mark Rutlandace9bad2018-09-04 11:48:25 +01001cat <<EOF
Marco Elver765dcd22019-11-26 15:04:05 +01002static __always_inline ${ret}
Mark Rutlandf3e615b2021-07-13 11:52:50 +01003arch_${atomic}_${pfx}${name}${sfx}(${params})
Mark Rutlandace9bad2018-09-04 11:48:25 +01004{
5 ${ret} ret;
6 __atomic_pre_full_fence();
Mark Rutlandf3e615b2021-07-13 11:52:50 +01007 ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args});
Mark Rutlandace9bad2018-09-04 11:48:25 +01008 __atomic_post_full_fence();
9 return ret;
10}
11EOF