diff options
| author | Jiri Kosina <jkosina@suse.com> | 2024-11-18 21:51:47 +0100 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2024-11-18 21:51:47 +0100 |
| commit | 65578513c3a996cc0fa23526050cddeed08d8d64 (patch) | |
| tree | c622e3629e080f60c6ff21a308e7bf4e1b02cbd5 /tools/include/uapi/linux/const.h | |
| parent | 873c578324c7082677303e2921b71fe0f5737ccc (diff) | |
| parent | e8a0581914bd2e28f7af8d333ddc73fd78b1ef84 (diff) | |
Merge branch 'for-6.13/multitouch-v2' into for-linus
- code cleanup for mt_set_mode() (Dmitry Torokhov)
Diffstat (limited to 'tools/include/uapi/linux/const.h')
| -rw-r--r-- | tools/include/uapi/linux/const.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/const.h b/tools/include/uapi/linux/const.h index a429381e7ca5..e16be0d37746 100644 --- a/tools/include/uapi/linux/const.h +++ b/tools/include/uapi/linux/const.h @@ -28,6 +28,23 @@ #define _BITUL(x) (_UL(1) << (x)) #define _BITULL(x) (_ULL(1) << (x)) +#if !defined(__ASSEMBLY__) +/* + * Missing asm support + * + * __BIT128() would not work in the asm code, as it shifts an + * 'unsigned __init128' data type as direct representation of + * 128 bit constants is not supported in the gcc compiler, as + * they get silently truncated. + * + * TODO: Please revisit this implementation when gcc compiler + * starts representing 128 bit constants directly like long + * and unsigned long etc. Subsequently drop the comment for + * GENMASK_U128() which would then start supporting asm code. + */ +#define _BIT128(x) ((unsigned __int128)(1) << (x)) +#endif + #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) |
