Author: tkreuzer Date: Sat Jun 20 16:39:21 2009 New Revision: 41484
URL: http://svn.reactos.org/svn/reactos?rev=41484&view=rev Log: Add macros for Rtl large integer functions
Modified: branches/ros-amd64-bringup/reactos/include/psdk/winternl.h
Modified: branches/ros-amd64-bringup/reactos/include/psdk/winternl.h URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/includ... ============================================================================== --- branches/ros-amd64-bringup/reactos/include/psdk/winternl.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/psdk/winternl.h [iso-8859-1] Sat Jun 20 16:39:21 2009 @@ -2062,6 +2062,15 @@ BOOLEAN WINAPI RtlIsValidHandle(const RTL_HANDLE_TABLE *, const RTL_HANDLE *); BOOLEAN WINAPI RtlIsValidIndexHandle(const RTL_HANDLE_TABLE *, ULONG Index, RTL_HANDLE **);
+#ifdef _M_AMD64 +#define RtlLargeIntegerAdd(x1, x2) ((x1)+(x2)) +#define RtlLargeIntegerArithmeticShift(x, s) ((x) >> (s)) +//#define RtlLargeIntegerDivide(a,b,c,d) +#define RtlLargeIntegerNegate(x) (-(x)) +#define RtlLargeIntegerShiftLeft(x, s) ((x)<<(s)) +#define RtlLargeIntegerShiftRight(x, s) ((x)>>(s)) +#define RtlLargeIntegerSubtract(x1, x2) ((x1)-(x2)) +#else LONGLONG WINAPI RtlLargeIntegerAdd(LONGLONG,LONGLONG); LONGLONG WINAPI RtlLargeIntegerArithmeticShift(LONGLONG,INT); ULONGLONG WINAPI RtlLargeIntegerDivide( ULONGLONG,ULONGLONG,ULONGLONG *); @@ -2069,6 +2078,7 @@ LONGLONG WINAPI RtlLargeIntegerShiftLeft(LONGLONG,INT); LONGLONG WINAPI RtlLargeIntegerShiftRight(LONGLONG,INT); LONGLONG WINAPI RtlLargeIntegerSubtract(LONGLONG,LONGLONG); +#endif NTSTATUS WINAPI RtlLargeIntegerToChar(const ULONGLONG *,ULONG,ULONG,PCHAR); NTSTATUS WINAPI RtlLeaveCriticalSection(RTL_CRITICAL_SECTION *); DWORD WINAPI RtlLengthRequiredSid(DWORD);