Received: from eggs.gnu.org ([208.118.235.92]:49372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sr71S-0005qF-Sp for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sr71R-0001VE-I3 for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:37:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sr71R-0001Up-Aj for qemu-devel@nongnu.org; Tue, 17 Jul 2012 08:37:01 -0400 From: Markus Armbruster References: <0e5d35008c438b250c66b1ab4e774bd718521d8c.1342269249.git.blauwirbel@gmail.com> Date: Tue, 17 Jul 2012 14:36:56 +0200 In-Reply-To: (Peter Maydell's message of "Mon, 16 Jul 2012 16:34:50 +0100") Message-ID: <87boje1s47.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 2/2] bitops: fix types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , qemu-devel@nongnu.org Peter Maydell writes: > On 14 July 2012 13:34, Blue Swirl wrote: >> bitops.h uses inconsistently 'unsigned long' and 'int' for bit numbers. >> >> Unify to 'unsigned long' because it generates better code on x86_64. >> Adjust asserts accordingly. > > Still disagree with this patch, for the record. So do I. Changing tried-and-true code for some unproven performance gain is a bad idea. In this particular case, it additionally deviates from the code's source. If you feel your patch is a worthwhile improvement, please take it to LKML, so the kernel and future borrowers of this code can profit. Copying free code without at least trying to contribute improvements back to the source isn't proper.