Received: from eggs.gnu.org ([208.118.235.92]:37103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEEI4-0003eC-VV for qemu-devel@nongnu.org; Wed, 19 Sep 2012 03:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEEI0-0004g6-RG for qemu-devel@nongnu.org; Wed, 19 Sep 2012 03:01:44 -0400 From: Markus Armbruster References: <1347976422-2859-1-git-send-email-peter.maydell@linaro.org> <5058A6ED.4040902@weilnetz.de> Date: Wed, 19 Sep 2012 09:01:36 +0200 In-Reply-To: (Peter Maydell's message of "Tue, 18 Sep 2012 18:11:28 +0100") Message-ID: <878vc6o5rj.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] hw/pflash_cfi0[12]: Use host-utils.h ctz32() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Stefan Weil , qemu-devel@nongnu.org, patches@linaro.org Peter Maydell writes: > On 18 September 2012 17:53, Stefan Weil wrote: >> What about moving the ctz32 function (or even all of host-utils.h) to >> bitops.h? > > I guess that would make some sense, though I'm not generally > a huge fan of shuffling code around. > > (bitops.h and host-utils.h are not under the same license terms, > which might complicate things slightly.) Have a look at hw/hd-geometry.c for a suitable boilerplate comment.