]> Git Repo - linux.git/commit
uapi: Define GENMASK_U128
authorAnshuman Khandual <[email protected]>
Thu, 22 Aug 2024 04:48:52 +0000 (10:18 +0530)
committerYury Norov <[email protected]>
Wed, 28 Aug 2024 13:53:58 +0000 (06:53 -0700)
commit947697c6f0f75f9866f2f891a102dece7a09a064
treeda44cc945f1b0336374aa48f98f3f07cdc7affce
parent54c9e0085bd1015e524d8f4d3c4e78a7bc77ffca
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 <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Arnd Bergmann <[email protected]>>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Anshuman Khandual <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
include/linux/bits.h
include/uapi/linux/bits.h
include/uapi/linux/const.h
This page took 0.058642 seconds and 4 git commands to generate.