This is the mail archive of the gcc-prs@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: c/8733: Modulus operator incorrect


Synopsis: Modulus operator incorrect

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Wed Nov 27 09:22:26 2002
State-Changed-Why:
    % is remainder, not modulus. It maintains the invariant that
    a / b * b + a % b == a
    for any a, b (b != 0)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8733


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