Closed lioncash closed 5 years ago
The assignment here is intended (see test results). wh/wl >> 63 is the sign bit of the difference (i.e. the comparison result) and is piped to the carry flags fc
. The carry flags then determine which one is smaller/larger to store into the accumulator.
I should probably have separated the statements to make it clear.
separated them to make it more obvious
Made more than anything to bring this up.
It's very unlikely assignment here is intended, and even if this is wrong it is indeed intended, it's very non-idiomatic C++ (and matches a classic error in ternary statements, and should have a comment indicating that it's very intended).