update for HEAD-2003091401
[reactos.git] / include / ntos / mm.h
index 706ee37..2c97e14 100644 (file)
@@ -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 */