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

From: Daniel Wagner
Date: Wed May 13 2015 - 07:28:43 EST


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.

--
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/