ddk: update includes

git-svn-id: svn://kolibrios.org@3747 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2013-07-02 16:05:26 +00:00
parent 29188d51c6
commit be3d9040b1
10 changed files with 146 additions and 38 deletions

View File

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