blob: a349935ac7fef108b9c3502e034117a5cfb8f0b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if /bin/sh ${ATOMICDIR}/chkdup.sh arch_${atomic}_${pfx}${name}${sfx}_acquire acquire
then
acqrel=acquire
. ${ATOMICDIR}/acqrel.sh
fi
cat << EOF
static __always_inline ${ret}
arch_${atomic}_${pfx}${name}${sfx}_acquire(${params})
{
${ret} ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args});
__atomic_acquire_fence();
return ret;
}
EOF
|