4 ms·
Wait till this guy learns about multiplication and division
by empw 3mo ago
Wait till this guy learns about multiplication and division
- deleted 3mo ago[deleted]
- flohofwoe 3mo agoYeah ok got me, but AFAIK at least multiplication is sign-agnostic when the result is clamped to the width of the inputs (e.g. the result of multiplying two 64-bit values being clamped to 64-bits). Not sure about division though. But in any case: with 'sign-agnostic' integer types high level languages would simply need separate signed vs unsigned mul/div operators. Not a big thing when modern languages already have different operators for wraparound vs overflow-checked arithmetic (for instance + vs +% in Zig).