This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Pathalogical divides


Geoff Keating wrote:
> > Sure, except that the (largest_negtive_number % -1) *is* mathematically
> > defined: anything mod -1 is 0!  It's the corresponding *division* that's
> > undefined, but that isn't what the programmer is requesting.
> 
> I see!  You are right.  Yes, this is required to work.

And if it did work, GCC wouldn't crash when compiled with itself :-)

-- Jamie

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]