From: Leon Romanovsky <leon@kernel•org>
To: Nicolas Saenz Julienne <nsaenzjulienne@suse•de>
Cc: andrew.murray@arm•com, maz@kernel•org,
linux-kernel@vger•kernel.org,
Lorenzo Pieralisi <lorenzo.pieralisi@arm•com>,
Hanjun Guo <guohanjun@huawei•com>,
Sudeep Holla <sudeep.holla@arm•com>,
Tariq Toukan <tariqt@mellanox•com>,
Rob Herring <robh+dt@kernel•org>,
Frank Rowand <frowand.list@gmail•com>,
Shawn Lin <shawn.lin@rock-chips•com>,
Heiko Stuebner <heiko@sntech•de>, Christoph Hellwig <hch@lst•de>,
Marek Szyprowski <m.szyprowski@samsung•com>,
Robin Murphy <robin.murphy@arm•com>,
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" <rjw@rjwysocki•net>,
Len Brown <lenb@kernel•org>,
"David S. Miller" <davem@davemloft•net>,
Bjorn Helgaas <bhelgaas@google•com>,
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
Subject: Re: [PATCH v3 1/7] linux/log2.h: Add roundup/rounddown_pow_two64() family of functions
Date: Tue, 26 Nov 2019 14:51:37 +0200 [thread overview]
Message-ID: <20191126125137.GA10331@unreal> (raw)
In-Reply-To: <20191126091946.7970-2-nsaenzjulienne@suse.de>
On Tue, Nov 26, 2019 at 10:19:39AM +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.
Is it possible to create general roundup/rounddown_pow_two() which will
work correctly for any type of variables, instead of creating special
variant for every type?
Thanks
next prev parent reply other threads:[~2019-11-26 12:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-26 9:19 [PATCH v3 0/7] Raspberry Pi 4 PCIe support Nicolas Saenz Julienne
2019-11-26 9:19 ` [PATCH v3 1/7] linux/log2.h: Add roundup/rounddown_pow_two64() family of functions Nicolas Saenz Julienne
2019-11-26 12:51 ` Leon Romanovsky [this message]
2019-11-27 18:06 ` Robin Murphy
2019-11-27 18:24 ` Nicolas Saenz Julienne
2019-11-27 19:06 ` Robin Murphy
2019-11-27 19:12 ` Leon Romanovsky
2019-11-27 19:16 ` Nicolas Saenz Julienne
2019-11-27 17:36 ` Nicolas Saenz Julienne
2019-11-26 21:50 ` [PATCH v3 0/7] Raspberry Pi 4 PCIe support Bjorn Helgaas
2019-11-27 17:28 ` Nicolas Saenz Julienne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191126125137.GA10331@unreal \
--to=leon@kernel$(echo .)org \
--cc=andrew.murray@arm$(echo .)com \
--cc=bhelgaas@google$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=f.fainelli@gmail$(echo .)com \
--cc=frowand.list@gmail$(echo .)com \
--cc=guohanjun@huawei$(echo .)com \
--cc=hch@lst$(echo .)de \
--cc=heiko@sntech$(echo .)de \
--cc=iommu@lists$(echo .)linux-foundation.org \
--cc=james.quinlan@broadcom$(echo .)com \
--cc=jeremy.linton@arm$(echo .)com \
--cc=lenb@kernel$(echo .)org \
--cc=linux-acpi@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-pci@vger$(echo .)kernel.org \
--cc=linux-rdma@vger$(echo .)kernel.org \
--cc=linux-rockchip@lists$(echo .)infradead.org \
--cc=linux-rpi-kernel@lists$(echo .)infradead.org \
--cc=lorenzo.pieralisi@arm$(echo .)com \
--cc=m.szyprowski@samsung$(echo .)com \
--cc=maz@kernel$(echo .)org \
--cc=mbrugger@suse$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=nsaenzjulienne@suse$(echo .)de \
--cc=phil@raspberrypi$(echo .)org \
--cc=rjw@rjwysocki$(echo .)net \
--cc=robh+dt@kernel$(echo .)org \
--cc=robin.murphy@arm$(echo .)com \
--cc=shawn.lin@rock-chips$(echo .)com \
--cc=sudeep.holla@arm$(echo .)com \
--cc=tariqt@mellanox$(echo .)com \
--cc=wahrenst@gmx$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox