mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 07:28:20 -04:00
refactored the xor-xnor dependency
This commit is contained in:
parent
b87c5869c6
commit
b92a96b15e
@ -8,6 +8,7 @@ import static de.neemann.digital.core.element.PinInfo.input;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The XNOr
|
* The XNOr
|
||||||
|
*
|
||||||
* @author hneemann
|
* @author hneemann
|
||||||
*/
|
*/
|
||||||
public class XNOr extends XOr {
|
public class XNOr extends XOr {
|
||||||
@ -31,6 +32,6 @@ public class XNOr extends XOr {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected long calc(long a, long b) {
|
protected long calc(long a, long b) {
|
||||||
return ~super.calc(a, b);
|
return ~(a ^ b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user