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, 16 Jan 2007, Joe Buck wrote:

| 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.

yes, I assumed that -- since the standard says that the result is
undefined when b is zero.  I should have repeated that assumption.

-- Gaby


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