Re: [PATCH v1] lib/sort: Add 64 bit swap function

From: Andrew Morton
Date: Wed May 13 2015 - 17:47:07 EST


On Wed, 13 May 2015 13:28:33 +0200 Daniel Wagner <daniel.wagner@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/