diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2007-03-30 08:01:00 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2007-03-30 08:01:00 -0700 |
commit | 028138a76eb74eee80f1d9592f43bdbe0d4c3d6c (patch) | |
tree | 99371b5ea7fded49c4b914b0cb6e207fb580b2cf /src/opt/kit/kit.h | |
parent | 4da784c049b79b76d8c1b82297bd27f45ead9377 (diff) | |
download | abc-028138a76eb74eee80f1d9592f43bdbe0d4c3d6c.tar.gz abc-028138a76eb74eee80f1d9592f43bdbe0d4c3d6c.tar.bz2 abc-028138a76eb74eee80f1d9592f43bdbe0d4c3d6c.zip |
Version abc70330
Diffstat (limited to 'src/opt/kit/kit.h')
-rw-r--r-- | src/opt/kit/kit.h | 6 |
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; |