Division by zero
Division by zero
Posted Jan 4, 2025 23:18 UTC (Sat) by dskoll (subscriber, #1630)In reply to: Division by zero by khim
Parent article: Preventing data races with Pony
I compiled in both cases with make test which simply invoked gcc with no optimization. I checked the assembly output and you are right. On the armhf architecture, it looks like gcc calls into a library function:
bl __aeabi_idiv
but on the aarch64 architecture, it calls an assembly instruction:
sdiv w0, w1, w0
