mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 15:15:27 +00:00
use ULONG_PTR to calculate pointers
svn path=/trunk/; revision=11122
This commit is contained in:
parent
b8e45d0e41
commit
c8de36191c
|
@ -1,4 +1,4 @@
|
|||
/* $Id: ppb.c,v 1.18 2003/07/11 13:50:23 royce Exp $
|
||||
/* $Id: ppb.c,v 1.19 2004/09/29 08:41:39 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -22,8 +22,8 @@
|
|||
|
||||
/* MACROS ****************************************************************/
|
||||
|
||||
#define NORMALIZE(x,addr) {if(x) x=(VOID*)((ULONG)(x)+(ULONG)(addr));}
|
||||
#define DENORMALIZE(x,addr) {if(x) x=(VOID*)((ULONG)(x)-(ULONG)(addr));}
|
||||
#define NORMALIZE(x,addr) {if(x) x=(PVOID)((ULONG_PTR)(x)+(ULONG_PTR)(addr));}
|
||||
#define DENORMALIZE(x,addr) {if(x) x=(PVOID)((ULONG_PTR)(x)-(ULONG_PTR)(addr));}
|
||||
#define ALIGN(x,align) (((ULONG)(x)+(align)-1UL)&(~((align)-1UL)))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue