Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
operation: function(data) {
const bits = this.get('bits');
const sgn = this.get('signed');
if (!data.in1.isFullyDefined || !data.in2.isFullyDefined)
return { out: Vector3vl.xes(1) };
return {
out: Vector3vl.fromBool(this.arithcomp(
help.sig2bigint(data.in1, sgn.in1),
help.sig2bigint(data.in2, sgn.in2)))
};
},
gateParams: Gate.prototype.gateParams.concat(['bits', 'signed'])