Commit 817b2f68 authored by Jim Fulton's avatar Jim Fulton

Added macros to support value merging in set operations.

parent 438ffa40
...@@ -10,3 +10,6 @@ ...@@ -10,3 +10,6 @@
PyErr_SetString(PyExc_TypeError, "expected integer value"); \ PyErr_SetString(PyExc_TypeError, "expected integer value"); \
*(STATUS)=0; } *(STATUS)=0; }
#define MERGE_DEFAULT 1
#define MERGE(O1, w1, O2, w2) ((O1)*(w1)+(O2)*(w2))
#define MERGE_WEIGHT(O, w) ((O)*(w))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment