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]
Other format: [Raw text]

Re: Miscompilation of remainder expressions


On Tue, Jan 16, 2007 at 12:05:12PM -0600, Gabriel Dos Reis wrote:
> By definition, the absolute value of "a % b" is always less than the
> absolute value of b.  Consequently, "a % b" is always defined.

Nitpick: for nonzero b.


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