bits.h: added convenience types
This commit is contained in:
8
c/bits.h
8
c/bits.h
@@ -38,9 +38,17 @@ typedef uint64_t u64;
|
|||||||
typedef uint32_t u32;
|
typedef uint32_t u32;
|
||||||
typedef uint16_t u16;
|
typedef uint16_t u16;
|
||||||
typedef uint8_t u8;
|
typedef uint8_t u8;
|
||||||
|
|
||||||
|
typedef unsigned long int ulong;
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
typedef unsigned short ushort;
|
||||||
typedef unsigned char uchar;
|
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
|
/* count trailing zeroes : 00101000 -> 3
|
||||||
* ^^^
|
* ^^^
|
||||||
*/
|
*/
|
||||||
|
2
c/list.h
2
c/list.h
@@ -993,4 +993,4 @@ static inline void hlist_move_list(struct hlist_head *old,
|
|||||||
pos && ({ n = pos->member.next; 1; }); \
|
pos && ({ n = pos->member.next; 1; }); \
|
||||||
pos = hlist_entry_safe(n, __typeof__(*pos), member))
|
pos = hlist_entry_safe(n, __typeof__(*pos), member))
|
||||||
|
|
||||||
#endif
|
#endif /* __BR_LIST_H */
|
||||||
|
Reference in New Issue
Block a user