Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754569AbbEML2j (ORCPT ); Wed, 13 May 2015 07:28:39 -0400 Received: from mail.bmw-carit.de ([62.245.222.98]:47047 "EHLO mail.bmw-carit.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754506AbbEML2h (ORCPT ); Wed, 13 May 2015 07:28:37 -0400 X-CTCH-RefID: str=0001.0A0C0201.55533562.000F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Message-ID: <55533561.4090001@bmw-carit.de> Date: Wed, 13 May 2015 13:28:33 +0200 From: Daniel Wagner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Rasmus Villemoes , CC: , Subject: Re: [PATCH v1] lib/sort: Add 64 bit swap function References: <87egml7sn6.fsf@rasmusvillemoes.dk> <1431514812-9946-1-git-send-email-daniel.wagner@bmw-carit.de> In-Reply-To: <1431514812-9946-1-git-send-email-daniel.wagner@bmw-carit.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 569 Lines: 20 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/