Division by zero
Division by zero
Posted Jan 4, 2025 22:56 UTC (Sat) by khim (subscriber, #9252)In reply to: Division by zero by dskoll
Parent article: Preventing data races with Pony
How do you compile that? GCC is smart enough to recognize UB and produce appropriate brk if optimizations are enabled, but that's not related to what CPU is doing. And unoptimized version calls function that can check the divisior.
Try to invoke sdiv directly, then CPU should do what it does. At least for me it produces zero, as CPU manual promised.
