From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ0Ow-0002Vc-DW for qemu-devel@nongnu.org; Wed, 04 Feb 2015 08:53:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ0Oq-00065r-5o for qemu-devel@nongnu.org; Wed, 04 Feb 2015 08:53:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ0Op-00065f-W0 for qemu-devel@nongnu.org; Wed, 04 Feb 2015 08:53:48 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t14DrlPB013876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 4 Feb 2015 08:53:47 -0500 Date: Wed, 4 Feb 2015 14:53:45 +0100 From: Kevin Wolf Message-ID: <20150204135345.GD5641@noname.redhat.com> References: <1418647857-3589-1-git-send-email-mreitz@redhat.com> <1418647857-3589-12-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418647857-3589-12-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 11/26] qcow2: More helpers for refcount modification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 15.12.2014 um 13:50 hat Max Reitz geschrieben: > Add helper functions for getting and setting refcounts in a refcount > array for any possible refcount order, and choose the correct one during > refcount initialization. > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake > Reviewed-by: Stefan Hajnoczi Hm... Wouldn't it be better to have a single generic implementation that is based on uint64_t* and calculates the right shifts and bitmasks on the fly? Kevin