projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6fae56f
)
[XDK]
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Tue, 23 Mar 2010 17:09:17 +0000
(17:09 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Tue, 23 Mar 2010 17:09:17 +0000
(17:09 +0000)
Improve BYTES_TO_PAGES macro
svn path=/branches/header-work/; revision=46360
include/xdk/mmfuncs.h
patch
|
blob
|
history
diff --git
a/include/xdk/mmfuncs.h
b/include/xdk/mmfuncs.h
index
c405bb2
..
b714f97
100644
(file)
--- a/
include/xdk/mmfuncs.h
+++ b/
include/xdk/mmfuncs.h
@@
-55,7
+55,7
@@
$if (_WDMDDK_)
* IN ULONG Size)
*/
#define BYTES_TO_PAGES(Size) \
- (((Size)
>> PAGE_SHIFT) + (((Size) & (PAGE_SIZE - 1)) != 0)
)
+ (((Size)
+ PAGE_SIZE - 1) >> PAGE_SHIFT
)
/* PVOID
* PAGE_ALIGN(