On 09/10/15 02:08, Joseph Myers wrote:
On Thu, 8 Oct 2015, Matthew Fernandez wrote:
On 06/10/15 01:09, Joseph Myers wrote:
On Mon, 5 Oct 2015, Matthew Fernandez wrote:
on x86 is emitted as a call to __divdi3. If the numerator or denominator
are
negative, __divdi3 negates them. If either of
On 06/10/15 01:09, Joseph Myers wrote:
On Mon, 5 Oct 2015, Matthew Fernandez wrote:
on x86 is emitted as a call to __divdi3. If the numerator or denominator are
negative, __divdi3 negates them. If either of these values is INT64_MIN, I
believe this negation is undefined. Is this correct? If
Hello all,
Apologies in advance if this question is naïve or misdirected.
tl;dr: Is dividing by INT64_MIN in C undefined behaviour?
In more detail... AIUI when the current target does not have native instructions for a given division or modulo
operation, GCC emits calls to software emulation p