Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5014129img; Tue, 26 Mar 2019 23:43:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiUVXNJvUHsxVqF0H5TV/o6pK0oZDS71l5Knya2gIBCotBZl37nbv8HqdvCu2BqkLN2x/7 X-Received: by 2002:a17:902:822:: with SMTP id 31mr35438701plk.290.1553669036103; Tue, 26 Mar 2019 23:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553669036; cv=none; d=google.com; s=arc-20160816; b=MtuD9Oci4QAsct6wLThFGmBxYua6ODS6ho96pi0q+QZ9TEQt1bQRXhkND78fV6gKF0 MgS7eGJcRGO3pnV2noJhT0sOY8/k+kLguiRhGOwsO9CKuKjuLs2b0lia9IGuESIBTrF1 9Qli5XF3EbW6ilulIBVqxiS209l5fr6m3/d1a8UFOCuKi1UL1YZkGq8LwYPgq6AO1hvy 7FfMvNyaunheUUF1+nINPCbOWWN95g7k3+YQoxm0olyfjJ/PgWUSBZoSWITMXtoQY6Xb 43LLdiVhuS9sOnFX9lYhqVO/HFnh/iDkG4WS0YaLr+6igdkSudLmRF8Rp5iSvGAs4HeI GR1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ue3i/jpkNaMD6oi+Ij+z5Wc6281r7S+j9wuWaapda0E=; b=qUC15LShCQKIf8DQ2zTYIM2Tdst9JxsvK8bOjauidjl5fgI/0nCGjAppOHPvJ31qcl bTwG/taGc/i4c1Xvz5W72hXf9podFg0TccPBPGuh8qlzy/dHUlGakJr+NyvI5U4UC9f2 PHD+CQZmQrzZduyrUL/mIa7GQEB4D5LPQMOxK0VviMOt4fOwsSH1K0zHAALAb0SYvDFW frRbjZUDw/WdFj8iBEIPvUKXhXqAEF2Hug0r24Cg8O7DCadcQuDqQ6RtI+ibCuPJLAMc VJN7CxijDZgsKA4IbvnhCQ6+AQKFwpNmPucPWNg31ZjyfyabSj9IQmcn3jVJqZgm/v2T hDfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si1192629pla.89.2019.03.26.23.43.40; Tue, 26 Mar 2019 23:43:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387430AbfC0Gm6 (ORCPT + 99 others); Wed, 27 Mar 2019 02:42:58 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:40553 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbfC0Gm5 (ORCPT ); Wed, 27 Mar 2019 02:42:57 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id AB8D4100D9409; Wed, 27 Mar 2019 07:42:54 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 3484B32F53; Wed, 27 Mar 2019 07:42:54 +0100 (CET) Date: Wed, 27 Mar 2019 07:42:54 +0100 From: Lukas Wunner To: William Breathitt Gray Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, akpm@linux-foundation.org, linux-gpio@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk, yamada.masahiro@socionext.com, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, geert@linux-m68k.org, preid@electromag.com.au, Andy Shevchenko , Arnd Bergmann Subject: Re: [PATCH v13 01/11] bitops: Introduce the for_each_set_clump8 macro Message-ID: <20190327064254.lwj7ew37mxphieco@wunner.de> References: <497dc4b5b1f668b54e008e10a43d4108f4a41213.1553661964.git.vilhelm.gray@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <497dc4b5b1f668b54e008e10a43d4108f4a41213.1553661964.git.vilhelm.gray@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 01:58:45PM +0900, William Breathitt Gray wrote: > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to the location pointed by "clump". Additionally, the > bitmap_get_value8 and bitmap_set_value8 functions are introduced to > respectively get and set an 8-bit value in a bitmap memory region. I would have preferred static inlines for bitmap_get_value8(), bitmap_set_value8() and find_next_clump8() to make this as fast as possible in the callers because I've personally worked with an industrial application where the GPIO pins of a 74x164 are written every 250 usec. But apart from that I like this series a lot, thanks for working on it. Lukas