Hacker News new | ask | show | jobs
by xigoi 615 days ago
If you assume two’s complement arithmetic, then this is always equivalent because you’re basically just calculating the answer in a modular ring.