X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=include%2Fntos%2Fmm.h;h=2c97e1409ef862646c258fe9add9d1932489f7e0;hp=706ee3724f1c6a8f7ceb5f1a15e67822cba10dbb;hb=HEAD;hpb=7c0db166f81fbe8c8b913d7f26048e337d383605 diff --git a/include/ntos/mm.h b/include/ntos/mm.h index 706ee37..2c97e14 100644 --- a/include/ntos/mm.h +++ b/include/ntos/mm.h @@ -59,4 +59,7 @@ #endif /* __USE_W32API */ +#define PAGE_ROUND_UP(x) ( (((ULONG)x)%PAGE_SIZE) ? ((((ULONG)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG)x) ) +#define PAGE_ROUND_DOWN(x) (((ULONG)x)&(~(PAGE_SIZE-1))) + #endif /* __INCLUDE_MM_H */