[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150513144659.15aea69ece3e3a9b9a2770f5@linux-foundation.org>
Date: Wed, 13 May 2015 14:46:59 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Daniel Wagner <daniel.wagner@...-carit.de>
Cc: Rasmus Villemoes <linux@...musvillemoes.dk>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1] lib/sort: Add 64 bit swap function
On Wed, 13 May 2015 13:28:33 +0200 Daniel Wagner <daniel.wagner@...-carit.de> wrote:
> On 05/13/2015 01:00 PM, Daniel Wagner wrote:
> > static int cmp_72(const void *a, const void *b)
> > {
> > u32 l = get_unaligned((u32 *) a);
> > u32 r = get_unaligned((u32 *) b);
> >
> > if (l < r)
> > return -1;
> > if (l > r)
> > return -1;
> > return 0;
> > }
>
> Argh, obviously wrong. Should I send a fix? The numbers do not change.
I fixed it up.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists