mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 15:03:21 -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
|
||||
*
|
||||
* @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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user