bits.h: added convenience types

This commit is contained in:
2022-03-18 14:23:49 +01:00
parent 1da1f8a633
commit 21e27ba16e
2 changed files with 9 additions and 1 deletions

View File

@@ -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
* ^^^
*/

View File

@@ -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 */