☰
Debian Codegraph
@
7.2.8-1
7.2.7-1
7.2.6-1
7.1.9-1
7.1.4-1
7.0.9-1
7.0.12-2
/
/
scripts
/
atomic
/
fallbacks
/
try_cmpxchg
☽
☼
scripts/atomic/fallbacks/try_cmpxchg
code
plain
raw
GPL-2
1991-2012 Linus Torvalds and many others
debian/copyright
1
cat <<EOF
2
${int} r, o = *old;
3
r = raw_${atomic}_cmpxchg${order}(v, o, new);
4
if (unlikely(r != o))
5
*old = r;
6
return likely(r == o);
7
EOF