aboutsummaryrefslogtreecommitdiff
path: root/cbits/arith_lists.h
diff options
context:
space:
mode:
Diffstat (limited to 'cbits/arith_lists.h')
-rw-r--r--cbits/arith_lists.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cbits/arith_lists.h b/cbits/arith_lists.h
new file mode 100644
index 0000000..c7495e8
--- /dev/null
+++ b/cbits/arith_lists.h
@@ -0,0 +1,10 @@
+LIST_BINOP(BO_ADD, 1, +)
+LIST_BINOP(BO_SUB, 2, -)
+LIST_BINOP(BO_MUL, 3, *)
+
+LIST_UNOP(UO_NEG, 1,)
+LIST_UNOP(UO_ABS, 2,)
+LIST_UNOP(UO_SIGNUM, 3,)
+
+LIST_REDOP(RO_SUM1, 1,)
+LIST_REDOP(RO_PRODUCT1, 2,)