Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
ionspin committed Jul 14, 2024
1 parent 36ecfe1 commit 8aef7df
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ class BigInteger internal constructor(wordArray: WordArray, requestedSign: Sign)
}

/** Returns a new BigInt with bits combining [this], [other] doing a bitwise `|`/`or` operation. Forces sign to positive. */
// TODO Investigate what is expected behavior when one of the operand is negative. Is it considered to be two's complement?
override infix fun or(other: BigInteger): BigInteger {
val resultMagnitude = arithmetic.or(this.magnitude, other.magnitude)
val resultSign = when {
Expand Down

0 comments on commit 8aef7df

Please sign in to comment.