Author: spetreolle
Date: Sun Nov 13 23:47:21 2011
New Revision: 54375
URL:
http://svn.reactos.org/svn/reactos?rev=54375&view=rev
Log:
[NDK]
Fix definition of RtlExtendedLargeIntegerDivide.
Modified:
trunk/reactos/include/ndk/rtlfuncs.h
Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Sun Nov 13 23:47:21 2011
@@ -3555,8 +3555,23 @@
return Product;
}
-#endif
-
+#if defined(_AMD64_) || defined(_IA64_)
+static __inline
+LARGE_INTEGER
+NTAPI_INLINE
+RtlExtendedLargeIntegerDivide(
+ IN LARGE_INTEGER Dividend,
+ IN ULONG Divisor,
+ OUT PULONG Remainder OPTIONAL)
+{
+ LARGE_INTEGER ret;
+ ret.QuadPart = (ULONG64)Dividend.QuadPart / Divisor;
+ if (Remainder)
+ *Remainder = (ULONG)(Dividend.QuadPart % Divisor);
+ return ret;
+}
+
+#else
NTSYSAPI
LARGE_INTEGER
NTAPI
@@ -3565,6 +3580,11 @@
IN ULONG Divisor,
OUT PULONG Remainder OPTIONAL
);
+
+#endif /* defined(_AMD64_) || defined(_IA64_) */
+
+#endif
+
NTSYSAPI
ULONG