diff options
author | Anshuman Khandual <anshuman.khandual@arm.com> | 2024-08-22 10:18:52 +0530 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2024-08-28 06:53:58 -0700 |
commit | 947697c6f0f75f9866f2f891a102dece7a09a064 (patch) | |
tree | da44cc945f1b0336374aa48f98f3f07cdc7affce /lib | |
parent | 54c9e0085bd1015e524d8f4d3c4e78a7bc77ffca (diff) |
uapi: Define GENMASK_U128
This adds GENMASK_U128() and __GENMASK_U128() macros using __BITS_PER_U128
and __int128 data types. These macros will be used in providing support for
generating 128 bit masks.
The macros wouldn't work in all assembler flavors for reasons described
in the comments on top of declarations. Enforce it for more by adding
!__ASSEMBLY__ guard.
Cc: Yury Norov <yury.norov@gmail.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Arnd Bergmann <arnd@arndb.de>>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions