summaryrefslogtreecommitdiffstats
path: root/src/opt/kit/kit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt/kit/kit.h')
-rw-r--r--src/opt/kit/kit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/opt/kit/kit.h b/src/opt/kit/kit.h
index d779df7b..c08ea81a 100644
--- a/src/opt/kit/kit.h
+++ b/src/opt/kit/kit.h
@@ -293,6 +293,12 @@ static inline void Kit_TruthOr( unsigned * pOut, unsigned * pIn0, unsigned * pIn
for ( w = Kit_TruthWordNum(nVars)-1; w >= 0; w-- )
pOut[w] = pIn0[w] | pIn1[w];
}
+static inline void Kit_TruthXor( unsigned * pOut, unsigned * pIn0, unsigned * pIn1, int nVars )
+{
+ int w;
+ for ( w = Kit_TruthWordNum(nVars)-1; w >= 0; w-- )
+ pOut[w] = pIn0[w] ^ pIn1[w];
+}
static inline void Kit_TruthSharp( unsigned * pOut, unsigned * pIn0, unsigned * pIn1, int nVars )
{
int w;