mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
use ULONG_PTR to calculate pointers
svn path=/trunk/; revision=11122
This commit is contained in:
@@ -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)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user