Division by zero
Division by zero
Posted Jan 4, 2025 9:56 UTC (Sat) by pm215 (subscriber, #98099)In reply to: Division by zero by dskoll
Parent article: Preventing data races with Pony
Well, x86 does that. But the CPU architecture you're next most likely to be running on today (arm) does not. There the division instructions are defined to produce a zero result without generating an exception if you divide by zero. I believe powerpc, mips and riscv also do not generate exceptions for integer division by zero.
