From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF6Rg-0007OW-8k for qemu-devel@nongnu.org; Mon, 11 Mar 2013 13:23:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF6CC-0003Yi-3D for qemu-devel@nongnu.org; Mon, 11 Mar 2013 13:07:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF6CB-0003Yd-QW for qemu-devel@nongnu.org; Mon, 11 Mar 2013 13:07:31 -0400 Message-ID: <513E0F4C.8080202@redhat.com> Date: Mon, 11 Mar 2013 18:07:24 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <513DDFA3.1020308@dlhnet.de> <513DE6D6.9000105@redhat.com> <513DEBCF.9050407@redhat.com> <513DF854.80003@redhat.com> <32589117-17AC-4A82-820F-364CA5EEC23E@dlhnet.de> <513DFF33.5080400@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] find_next_bit optimizations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ronnie sahlberg Cc: Orit Wasserman , Peter Lieven , "qemu-devel@nongnu.org" , Corentin Chary Il 11/03/2013 18:06, ronnie sahlberg ha scritto: > Even more efficient might be to do bitwise instead of logical or > >> > if (tmp | d1 | d2 | d3) { > that should remove 3 of the 4 conditional jumps > and should become 3 bitwise ors and one conditional jump Without any serious profiling, please let the compiler do that. Paolo