summaryrefslogtreecommitdiffstats
path: root/lib/libcompiler_rt/__sync_fetch_and_and_8.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcompiler_rt/__sync_fetch_and_and_8.c')
-rw-r--r--lib/libcompiler_rt/__sync_fetch_and_and_8.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libcompiler_rt/__sync_fetch_and_and_8.c b/lib/libcompiler_rt/__sync_fetch_and_and_8.c
new file mode 100644
index 0000000..9923e31
--- /dev/null
+++ b/lib/libcompiler_rt/__sync_fetch_and_and_8.c
@@ -0,0 +1,7 @@
+/* $FreeBSD$ */
+#define NAME __sync_fetch_and_and_8
+#define TYPE uint64_t
+#define CMPSET atomic_cmpset_64
+#define EXPRESSION t & value
+
+#include "__sync_fetch_and_op_n.h"
OpenPOWER on IntegriCloud