forked from KolibriOS/kolibrios
ddk: update includes
git-svn-id: svn://kolibrios.org@3747 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a)))
|
||||
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
|
||||
|
||||
|
||||
#define __round_mask(x, y) ((__typeof__(x))((y)-1))
|
||||
#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
|
||||
|
||||
/* The `const' in roundup() prevents gcc-3.3 from calling __divdi3 */
|
||||
#define roundup(x, y) ( \
|
||||
{ \
|
||||
@@ -418,5 +422,12 @@ unsigned int hweight16(unsigned int w);
|
||||
|
||||
extern unsigned int tsc_khz;
|
||||
|
||||
#define on_each_cpu(func,info,wait) \
|
||||
({ \
|
||||
func(info); \
|
||||
0; \
|
||||
})
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user