From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIVFg-0005xi-6E for qemu-devel@nongnu.org; Fri, 24 Jul 2015 01:10:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIVFb-00088d-6H for qemu-devel@nongnu.org; Fri, 24 Jul 2015 01:10:32 -0400 Sender: Paolo Bonzini References: <1437649738-13885-1-git-send-email-peter.maydell@linaro.org> <55B11C5C.8050507@redhat.com> From: Paolo Bonzini Message-ID: <55B1C8BF.7060806@redhat.com> Date: Fri, 24 Jul 2015 07:10:23 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/5] replace qemu_fls() with pow2ceil()/pow2floor() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , Qemu-block , "Michael S. Tsirkin" , Patch Tracking , QEMU Developers , Keith Busch On 23/07/2015 22:10, Peter Maydell wrote: >> > The series looks good, but I'd prefer (especially for patch 4 which is >> > in a fast path) if pow2ceil and pow2floor were made inline. > Yeah, I was wondering if I was going to be asked to do that. > Note that qemu_fls() is/was *not* inline, though, so you're > taking an out-of-line function call on these code paths > already. But in patch 4 the call is only in the rare case where "l & (l - 1)" is not zero. Paolo