[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wga4bCp7XJcbf12hVp6zciuZ-dmduw8RF=CBy-DGy=QXw@mail.gmail.com>
Date: Wed, 26 Nov 2025 11:44:59 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Rasmus Villemoes <ravi@...vas.dk>
Cc: "Yury Norov (NVIDIA)" <yury.norov@...il.com>, Linus Walleij <linus.walleij@...aro.org>,
Nicolas Frattaroli <nicolas.frattaroli@...labora.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/21] lib: add alternatives for GENMASK()
On Wed, 26 Nov 2025 at 01:07, Rasmus Villemoes <ravi@...vas.dk> wrote:
>
> There is, however, an alternative that resembles the syntax in data
> sheets even more closely:
>
> #define BITS(low_high) GENMASK((0 ? low_high), (1 ? low_high))
Oh, me likey. That's a much better idea than my crazy syntax.
Linus
Powered by blists - more mailing lists