public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: Andreas Schwab <schwab@redhat.com>
Cc: Tristan Gingold <gingold@adacore.com>,
	Nick Clifton <nickc@redhat.com>,
		Binutils <binutils@sourceware.org>
Subject: Re: [Patch] opcodes/z8k-opc.h regenerated
Date: Mon, 07 Sep 2009 13:20:00 -0000	[thread overview]
Message-ID: <20090907132041.GG518@bubble.grove.modra.org> (raw)
In-Reply-To: <m3my56gb0p.fsf@hase.home>

On Mon, Sep 07, 2009 at 03:05:58PM +0200, Andreas Schwab wrote:
> Not sure whether you can count on p1 != p2.

Does it matter?  Seems to me if qsort calls the comparison function
with p1 == p2, then it doesn't matter whether qsort "swaps" those
entries or not.  It would be a rather poor qsort implementation that
did this and then didn't terminate..

>  A common idiom is (p1 > p2) - (p1 < p2).

Feel free to fix it if you think this is necessary, or even just
desirable as the Right Thing To Do.

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2009-09-07 13:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 13:00 Tristan Gingold
2009-09-04 15:33 ` Nick Clifton
2009-09-07  8:30   ` Tristan Gingold
2009-09-07 11:18     ` Alan Modra
2009-09-07 11:37       ` Alan Modra
2009-09-07 11:47         ` Tristan Gingold
2009-09-07 12:12         ` Alan Modra
2009-09-07 12:17           ` Andreas Schwab
2009-09-07 12:29             ` Tristan Gingold
2009-09-07 13:08               ` Andreas Schwab
2009-09-07 13:20                 ` Alan Modra [this message]
2009-09-07 14:40                   ` Andreas Schwab
2009-09-07 21:58                     ` Alan Modra
2009-09-07 22:32                       ` Andreas Schwab
2009-09-07 23:43                         ` Alan Modra
2009-09-08  9:01                           ` Andreas Schwab
2009-09-08  9:35                             ` Alan Modra
2009-09-07 13:01             ` Alan Modra
2009-09-07 11:38       ` Tristan Gingold

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=20090907132041.GG518@bubble.grove.modra.org \
    --to=amodra@bigpond.net.au \
    --cc=binutils@sourceware.org \
    --cc=gingold@adacore.com \
    --cc=nickc@redhat.com \
    --cc=schwab@redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).