Andrew Haley wrote:
Yes, sorry, now I see that in the specific case it's just an overflow, like INT_MAX + 1. I was more interested in % in general for negative operands: for actual CPUs what do we know beyond the standard?Paolo Carlini writes:> > I would like to understand the issue better, however...What more is there to understand? It's an integer overflow. The processor generates a trap on integer overflows during division operations.
Thanks, Paolo.