summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/fallbacks/inc_not_zero
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/fallbacks/inc_not_zero')
-rwxr-xr-xscripts/atomic/fallbacks/inc_not_zero3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/inc_not_zero b/scripts/atomic/fallbacks/inc_not_zero
new file mode 100755
index 0000000000..1fcef1e55b
--- /dev/null
+++ b/scripts/atomic/fallbacks/inc_not_zero
@@ -0,0 +1,3 @@
+cat <<EOF
+ return raw_${atomic}_add_unless(v, 1, 0);
+EOF