From patchwork Thu Feb 14 01:47:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 220345 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B35722C0299 for ; Thu, 14 Feb 2013 14:21:04 +1100 (EST) Received: from localhost ([::1]:41589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5pNe-0006pJ-Sd for incoming@patchwork.ozlabs.org; Wed, 13 Feb 2013 22:21:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5nvv-0007xY-2m for qemu-devel@nongnu.org; Wed, 13 Feb 2013 20:48:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5nvp-0006O6-Iu for qemu-devel@nongnu.org; Wed, 13 Feb 2013 20:48:18 -0500 Received: from mail-da0-f48.google.com ([209.85.210.48]:42853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5nvn-0006Ml-FW for qemu-devel@nongnu.org; Wed, 13 Feb 2013 20:48:12 -0500 Received: by mail-da0-f48.google.com with SMTP id v40so811421dad.35 for ; Wed, 13 Feb 2013 17:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=o9KQYcv4P/3lcWjo+D+lTphVQkC9phg36h6DhMJxDsA=; b=DsKwhfc+CWLR1I6mywyVUxVVLxW+eOrFFmcMftmDjRDvJB5+tfrUrG64IrXS7V1SsE rMkdMha/8FWXQBtlPNFs1ioUIrUZqSkhuYM9S6xDi2wFVI2kioKgBWPI4S1Tkya0EgxZ +xvsVkBdzPylOpg7RV5qC/VvyONMn4zzajSeXJbxbp9FhM7pZSDaozKHRbeIfF1oghFq rd8iNy+M5/wmszlgp5uJGHSHF8TD0OJ0J9qQcY/G7mQM/EShSedjSwDgF5osw+4sXcEF wL3pDVsg/zD6D5Ra0KhuaxUp4wQM4ja4OEJTRUL812maFHwzKOXCLYC8uvkTosV5JTmg KJUg== X-Received: by 10.66.79.195 with SMTP id l3mr68878266pax.82.1360806483361; Wed, 13 Feb 2013 17:48:03 -0800 (PST) Received: from pebble.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPS id c3sm44029148pax.9.2013.02.13.17.48.01 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 13 Feb 2013 17:48:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 13 Feb 2013 17:47:42 -0800 Message-Id: <1360806463-23632-10-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360806463-23632-1-git-send-email-rth@twiddle.net> References: <1360806463-23632-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.48 Cc: blauwirbel@gmail.com Subject: [Qemu-devel] [PATCH 09/10] bitops: Replace bitops_ctol with ctzl X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The is the only remaining user. Signed-off-by: Richard Henderson --- util/bitops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/bitops.c b/util/bitops.c index 50b4a81..e72237a 100644 --- a/util/bitops.c +++ b/util/bitops.c @@ -109,7 +109,7 @@ found_first: return result + size; /* Nope. */ } found_middle: - return result + bitops_ctol(tmp); + return result + ctzl(~tmp); } unsigned long find_last_bit(const unsigned long *addr, unsigned long size)