Re: [PATCH 00/21] lib: add alternatives for GENMASK()
From: Linus Torvalds
Date: Wed Nov 26 2025 - 14:45:19 EST
On Wed, 26 Nov 2025 at 01:07, Rasmus Villemoes <ravi@xxxxxxxxx> 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