From cdaa1f6d821d5cd4de5c51ed95a4cebcc84bc8ce Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 20 Jun 2009 12:39:21 +0000 Subject: [PATCH] Add macros for Rtl large integer functions svn path=/branches/ros-amd64-bringup/; revision=41484 --- reactos/include/psdk/winternl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/reactos/include/psdk/winternl.h b/reactos/include/psdk/winternl.h index 61abccd699f..bba3b2e0540 100644 --- a/reactos/include/psdk/winternl.h +++ b/reactos/include/psdk/winternl.h @@ -2062,6 +2062,15 @@ BOOLEAN WINAPI RtlIsTextUnicode(LPCVOID,INT,INT *); 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 RtlLargeIntegerNegate(LONGLONG); 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);