refactored the xor-xnor dependency

This commit is contained in:
hneemann 2016-08-20 20:33:10 +02:00
parent b87c5869c6
commit b92a96b15e

View File

@ -8,6 +8,7 @@ import static de.neemann.digital.core.element.PinInfo.input;
/**
* The XNOr
*
* @author hneemann
*/
public class XNOr extends XOr {
@ -31,6 +32,6 @@ public class XNOr extends XOr {
@Override
protected long calc(long a, long b) {
return ~super.calc(a, b);
return ~(a ^ b);
}
}