linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: roel <12o3l@tiscali.nl>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>,
	jgarzik@pobox.com, linux-ide@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	axboe@kernel.dk, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [patch 1/2] Enable link power management for ata drivers
Date: Tue, 25 Sep 2007 02:00:22 +0200	[thread overview]
Message-ID: <46F84F96.9090402@tiscali.nl> (raw)
In-Reply-To: <Pine.LNX.4.64.0709241624460.24423@alien.or.mcafeemobile.com>

Davide Libenzi wrote:
> On Tue, 25 Sep 2007, roel wrote:
> 
>>> +	if (!(ap->flags & ATA_FLAG_IPM) || !ata_dev_enabled(dev)) {
>> 	if (!((ap->flags & ATA_FLAG_IPM) && ata_dev_enabled(dev))) {
> 
> int foo(int i, int j) {
>         
>         return !(i & 8) || !j;
> }
> 
> int moo(int i, int j) {
>         
>         return !((i & 8) && j);
> }
> 
> 
> gcc -O2 -S:
> 
> 
> .globl foo
>         .type   foo, @function
> foo:
>         shrl    $3, %edi
>         xorl    $1, %edi
>         testl   %esi, %esi
>         sete    %al
>         orl     %eax, %edi
>         andl    $1, %edi
>         movl    %edi, %eax
>         ret
> .globl moo
>         .type   moo, @function
> moo:
>         shrl    $3, %edi
>         xorl    $1, %edi
>         testl   %esi, %esi
>         sete    %al
>         orl     %eax, %edi
>         andl    $1, %edi
>         movl    %edi, %eax
>         ret

Indeed, no difference, except for the eye. 

do you not consider it an improvement or do you not want to change it?
or
don't you consider it an improvement and want to change it?

Never mind. Disregard if you please.

> - Davide


  reply	other threads:[~2007-09-25  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070924215140.966161778@intel.com>
2007-09-24 22:13 ` [patch 1/2] Enable link power management for ata drivers Kristen Carlson Accardi
2007-09-24 23:12   ` roel
2007-09-24 23:28     ` Davide Libenzi
2007-09-25  0:00       ` roel [this message]
2007-09-24 23:41     ` Kristen Carlson Accardi
2007-09-24 23:59       ` Jeff Garzik
2007-09-25  9:50         ` Alan Cox
2007-09-26  2:45           ` Jeff Garzik
2007-10-25  5:21   ` Jeff Garzik
2007-09-24 22:14 ` [patch 2/2] Enable Aggressive Link Power management for AHCI controllers Kristen Carlson Accardi
2007-10-25  5:34   ` Jeff Garzik

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=46F84F96.9090402@tiscali.nl \
    --to=12o3l@tiscali.nl \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=davidel@xmailserver.org \
    --cc=jgarzik@pobox.com \
    --cc=kristen.c.accardi@intel.com \
    --cc=linux-ide@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).