operator ^ method

  1. @override
Logic operator ^(
  1. Logic other
)
override

Logical bitwise XOR.

Implementation

@override
Logic operator ^(Logic other) {
  _checkMatchingWidth(other);

  if (other is Const) {
    return Const(value ^ other.value);
  }

  return Xor2Gate(this, other).out;
}