linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bogdan Cristea <bogdan.cristea@upmc.fr>
To: Nicolas Kaiser <nikai@nikai.net>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: duplicated modulo
Date: Fri, 1 Apr 2011 11:30:46 +0200	[thread overview]
Message-ID: <201104011130.46406.bogdan.cristea@upmc.fr> (raw)
In-Reply-To: <20110401121916.34a567da@absol.kitzblitz>

On Friday, April 01, 2011 12:19:16 pm you wrote:
> Sure. But I fail to see where between
> 
> a %= b;
> a %= b;
> 
> and
> 
> a = (a % b) % b;
> 
> and
> 
> a %= b;
> 
> would be a difference?

That is basic math. Once you have obtained the remainder of the division by b, 
taking the second time the remainder makes no sense.

-- 
Bogdan Cristea

  reply	other threads:[~2011-04-01  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01  9:41 duplicated modulo Nicolas Kaiser
2011-04-01  9:50 ` Michal Nazarewicz
2011-04-01 10:19   ` Nicolas Kaiser
2011-04-01  9:30     ` Bogdan Cristea [this message]
2011-04-01 10:28     ` Bastian Bloessl
2011-04-01 11:20     ` Michal Nazarewicz
2011-04-04  8:26 ` Hendrik Visage

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201104011130.46406.bogdan.cristea@upmc.fr \
    --to=bogdan.cristea@upmc.fr \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=nikai@nikai.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).