abs preserves the lowest set bit, so if we know the lowest set bit,
set it in the output.
As well, implement the case where the operand is known negative.
Differential D150100
[KnownBits] Improve implementation of `KnownBits::abs` goldstein.w.n on May 7 2023, 11:58 PM. Authored by
Details abs preserves the lowest set bit, so if we know the lowest set bit, As well, implement the case where the operand is known negative.
Diff Detail
Event Timeline
Comment Actions LGTM. I hope that one day we can remove this logic in abs() when computeForAddSub() gets a precise nsw implementation. |
Maybe call these MaxTZ/MinTZ? Just to make it clear later on we're not talking about the possible min/max values