From 21e27ba16edafa540b94d1aa848f3509bd88c4b5 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Fri, 18 Mar 2022 14:23:49 +0100 Subject: [PATCH] bits.h: added convenience types --- c/bits.h | 8 ++++++++ c/list.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/c/bits.h b/c/bits.h index e98f53c..322d2cb 100644 --- a/c/bits.h +++ b/c/bits.h @@ -38,9 +38,17 @@ typedef uint64_t u64; typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; + +typedef unsigned long int ulong; typedef unsigned int uint; +typedef unsigned short ushort; typedef unsigned char uchar; +typedef signed long int slong; +typedef signed int sint; +typedef signed short sshort; +typedef signed char schar; + /* count trailing zeroes : 00101000 -> 3 * ^^^ */ diff --git a/c/list.h b/c/list.h index 9003145..ec2fe09 100644 --- a/c/list.h +++ b/c/list.h @@ -993,4 +993,4 @@ static inline void hlist_move_list(struct hlist_head *old, pos && ({ n = pos->member.next; 1; }); \ pos = hlist_entry_safe(n, __typeof__(*pos), member)) -#endif +#endif /* __BR_LIST_H */