{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihflxchyykuhvyaxblimetqyq5mb2yzrta43h3gh7zp2bhvb5y7ay",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mnuju3g2reu2"
},
"path": "/t/infinite-precision-intermediate-arithmetic-how-much-would-break/24383#post_18",
"publishedAt": "2026-06-09T13:37:40.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "mathstuf:\n\n> `!v` definitely depends on the bit width. What does one do with `!i32::min()` otherwise?\n\n`!i32::MIN == i32::MAX` at every bit width.\n\nmathstuf:\n\n> If this is then `&` or `|` with a value, there are questions of what width those operations work at.\n\n`!`, `&` and `|` behave the same at every signed bit width, and Python has them on infinite width. The only issue is that `!` automatically wraps on unsigned types.",
"title": "Infinite precision intermediate arithmetic: how much would break?"
}