kernel/scripts/atomic/fallbacks/fetch_add_unless
sevki c9e1dba412 chore(ci): setup github actions and workflows
setup CI/CD for kernel development
- added CodeQL for code scanning
- every pr is built as an image and is available for
  30days on https://oklinux.dev
- tagged and released on github for now

Signed-off-by: sevki <s@sevki.io>
2024-03-15 21:46:24 +00:00

10 lines
156 B
Text
Executable file

cat << EOF
${int} c = raw_${atomic}_read(v);
do {
if (unlikely(c == u))
break;
} while (!raw_${atomic}_try_cmpxchg(v, &c, c + a));
return c;
EOF