linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: "André Luis Pereira dos Santos - BSRSoft" <andre@bsrsoft.com.br>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] fs: Small refactoring of the code in ext4 2.6.37-rc1
Date: Fri, 5 Nov 2010 08:52:11 -0400	[thread overview]
Message-ID: <20101105125211.GH7553@thunk.org> (raw)
In-Reply-To: <756314.4122.qm@web110514.mail.gq1.yahoo.com>

On Thu, Nov 04, 2010 at 04:34:26PM -0700, André Luis Pereira dos Santos - BSRSoft wrote:
> 
> I had not realized that the side effect would really be changing
> variables incremented and decremented.

You're also wrong if you think that "i--" is more efficient than "i =
i - 1".  Any good compiler will do the right thing with either
expression.

       	    	     	       	    	      - Ted

  reply	other threads:[~2010-11-05 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 23:34 [PATCH 1/1] fs: Small refactoring of the code in ext4 2.6.37-rc1 André Luis Pereira dos Santos - BSRSoft
2010-11-05 12:52 ` Ted Ts'o [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-11-04 22:07 André Luis Pereira dos Santos - BSRSoft
2010-11-04 22:31 ` Jesper Juhl
2010-11-04 22:44 ` Greg Freemyer

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=20101105125211.GH7553@thunk.org \
    --to=tytso@mit.edu \
    --cc=adilger.kernel@dilger.ca \
    --cc=andre@bsrsoft.com.br \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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).