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: Stupid off-topic question


> Date: Wed, 02 Aug 2000 22:49:09 +0200
> From: Toon Moene <toon@moene.indiv.nluug.nl>

> > The rule in C99 is that (a/b)*b + a%b == a
> > and than / truncates towards 0.
>       ^^^^ that ?
> 
> Hmmm, has this changed with C99 ? 

Yes.  Before C99 it used to be machine-dependent whether it truncated
towards 0 or towards -MAX_INT.  The '(a/b)*b + a%b == a' rule was
always there, though.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

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