mirror of
https://github.com/Z3Prover/z3
synced 2026-07-15 11:35:42 +00:00
Document MSVC ARM64 magnitude extraction
This commit is contained in:
parent
20bba3e452
commit
4c8c511b40
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ static bool mul_overflows(int64_t a, int64_t b, int64_t & result) {
|
|||
// Overflow if high bits are not the sign extension of result
|
||||
return high != (result >> 63);
|
||||
#elif defined(_MSC_VER)
|
||||
// Extract magnitudes without ever evaluating -INT64_MIN.
|
||||
uint64_t x = a < 0 ? static_cast<uint64_t>(-(a + 1)) + 1 : static_cast<uint64_t>(a);
|
||||
uint64_t y = b < 0 ? static_cast<uint64_t>(-(b + 1)) + 1 : static_cast<uint64_t>(b);
|
||||
bool is_neg = (a < 0) != (b < 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue