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