Closed courteous closed 6 years ago
can you please explain what this line exactly in the method bitwise is supposed to do?
var sum = fn(xSign ? 1 : 0, ySign ? 1 : 0) !== 0 ? bigInt(-1) : bigInt(0);
thanks
sometimes, -2**k should be subtracted from the result to simulate 2s complement representation
-2**k
can you please explain what this line exactly in the method bitwise is supposed to do?
var sum = fn(xSign ? 1 : 0, ySign ? 1 : 0) !== 0 ? bigInt(-1) : bigInt(0);
thanks