Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5802946ybc; Wed, 27 Nov 2019 09:38:43 -0800 (PST) X-Google-Smtp-Source: APXvYqz4PIK6t5Bd2M0oVhVJhPnUmd7wvBxZIe8PYdCo2rKD2vk7jQmdlVXOgIOa23owqzULrt5W X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr49213977ejb.138.1574876321968; Wed, 27 Nov 2019 09:38:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574876321; cv=none; d=google.com; s=arc-20160816; b=forWcFAuJwHhGcuG42IclK2MhNSNXSsmp2VZubFffgrrNUIt2RpQO5GpMCeK1O97pE 80XUV4HQc2G3RKw9etu74CB+IdAC/sj0Z6XcghrojxA8QTJXZzZizNYx5IEx02iG2G5s 3s/Uk0tiPicMyS08Rsu+A5rWcpnDjvsEPqvYR5xR+6o/49Y2co8KzLyENoUzTa8ofZfK SrqqDGXJvW4t3QDGR7E3EKoZKrKqbrAi8a6ZGKpZqZfNNZ7miY5Q3BqRioaAkm+Po2/v 0TrhFXg4k+Hlg0Fn0mSg5obe0one5vMwHL9AnXnJAU79Sm2ExwVpQJeGZYPcAex2ca/t p+6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=uFNC+1+nRe+ZWht5SRsCh/Mj9jk07Y/gtYYHR8Ow8Zo=; b=AvbfJ1DBdbvLrYQEQ1tZ1NAnAJ81ZXgefsYOWq7/roFI6FwVMr5VY7PR7DYI/DXPnt QVyB4dFGPHHUiWYi5SWISYDELCwqchBd56DGvcsE3TsYu1nNo7DXbF7mv0sr9WWnjOc9 IJIReEcQnDWmMeqGoiYbGdisw13vOcK4cWwqBVaZaa02V0C/dzNIcb0CDvrWwDA5jIRE +avnNz2I8Pc5gXE4KY8oexsauHTVgb211IlhkKtm7KyXnw93qTDSbGHSLBzlLNVaWqqy n69KXbkTnqCQFV68i92kLm/KkGKqfw4P7IsGIxX9MjTkWdku2xc7UA1w6Pv4lgzQzkqC qBIQ== 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 f25si10489387ejt.9.2019.11.27.09.38.18; Wed, 27 Nov 2019 09:38:41 -0800 (PST) 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 S1727125AbfK0Rgx (ORCPT + 99 others); Wed, 27 Nov 2019 12:36:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:54054 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726655AbfK0Rgw (ORCPT ); Wed, 27 Nov 2019 12:36:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BE0F9B042; Wed, 27 Nov 2019 17:36:49 +0000 (UTC) Message-ID: <4e77aa14b0fd1150a186d5d6e540f115beb7cd2f.camel@suse.de> Subject: Re: [PATCH v3 1/7] linux/log2.h: Add roundup/rounddown_pow_two64() family of functions From: Nicolas Saenz Julienne To: andrew.murray@arm.com, maz@kernel.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Tariq Toukan , Rob Herring , Frank Rowand , Shawn Lin , Heiko Stuebner , Christoph Hellwig , Marek Szyprowski , Robin Murphy Cc: james.quinlan@broadcom.com, mbrugger@suse.com, f.fainelli@gmail.com, phil@raspberrypi.org, wahrenst@gmx.net, jeremy.linton@arm.com, linux-pci@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, "Rafael J. Wysocki" , Len Brown , "David S. Miller" , Bjorn Helgaas , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org Date: Wed, 27 Nov 2019 18:36:43 +0100 In-Reply-To: <20191126091946.7970-2-nsaenzjulienne@suse.de> References: <20191126091946.7970-1-nsaenzjulienne@suse.de> <20191126091946.7970-2-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-pGA2H6iLsoqumxPFnjV/" User-Agent: Evolution 3.34.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-pGA2H6iLsoqumxPFnjV/ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-11-26 at 10:19 +0100, Nicolas Saenz Julienne wrote: > Some users need to make sure their rounding function accepts and returns > 64bit long variables regardless of the architecture. Sadly > roundup/rounddown_pow_two() takes and returns unsigned longs. Create a > new generic 64bit variant of the function and cleanup rougue custom > implementations. >=20 > Signed-off-by: Nicolas Saenz Julienne Small Nit: I corrected the patch subject for next version. linux/log2.h: Add roundup/rounddown_pow_two_u64() family of functions Note the change here: ^^^^ Regards, Nicolas --=-pGA2H6iLsoqumxPFnjV/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl3etCsACgkQlfZmHno8 x/4AJwf9Eq0ZM4NqHmqyyrS7BQmYgPtM7piuXLZCM3vqnnuHZTenFUoHxhH60Ffb HzBZeEMXW4jW8lQIOtwAy6+cQ19qTmM3uR2gAPmNzuvcFvpVOXPvKGMKSte+IYqI s5O/WUAFckUhcZRDrI4P0P2PdZLOgYXsQU9k6jGXPnWW1my63yF6W+01o/Oy/Oef x+WobkWQtp9ozxgzG9Six/Sx7Bmn22OPxFSiGftu00G9AYSX1jkgv8yUPyoT0buj aNTTrueG/JVXF9afKDupaKDAV69F7eYTFjYiMxl53jTQAshV6s9FV+tOdnFWqBRX abK/iKFoC2e1Sip+k57Zx8tFXUexGg== =qoBY -----END PGP SIGNATURE----- --=-pGA2H6iLsoqumxPFnjV/--