diff options
| author | Peter Zijlstra <[email protected]> | 2023-05-31 15:08:35 +0200 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2023-06-05 09:36:35 +0200 |
| commit | 224d80c584d3016cb8d83d1c33914fdd3508aa8c (patch) | |
| tree | 09619ad80961c82b1cd752e1c3e56a1c9ffca100 /include/linux | |
| parent | f413e724818c6482146218b3bcaf3d75b1317fc4 (diff) | |
types: Introduce [us]128
Introduce [us]128 (when available). Unlike [us]64, ensure they are
always naturally aligned.
This also enables 128bit wide atomics (which require natural
alignment) such as cmpxchg128().
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 688fb943556a..becb8cd5916f 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -10,6 +10,11 @@ #define DECLARE_BITMAP(name,bits) \ unsigned long name[BITS_TO_LONGS(bits)] +#ifdef __SIZEOF_INT128__ +typedef __s128 s128; +typedef __u128 u128; +#endif + typedef u32 __kernel_dev_t; typedef __kernel_fd_set fd_set; |