Author: tkreuzer
Date: Wed Mar 18 20:12:57 2009
New Revision: 40090
URL:
http://svn.reactos.org/svn/reactos?rev=40090&view=rev
Log:
add missing definition of MultiplyHigh and UnsignedMultiplyHigh, fix typos.
Modified:
trunk/reactos/include/ddk/wdm.h
Modified: trunk/reactos/include/ddk/wdm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/wdm.h?rev=4009…
==============================================================================
--- trunk/reactos/include/ddk/wdm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/wdm.h [iso-8859-1] Wed Mar 18 20:12:57 2009
@@ -1864,6 +1864,10 @@
#endif
#if defined(_AMD64_)
+
+#define MultiplyHigh __mulh
+#define UnsignedMultiplyHigh __umulh
+
//DECLSPEC_DEPRECATED_DDK
static __inline
LARGE_INTEGER
@@ -1871,13 +1875,13 @@
RtlExtendedMagicDivide(
IN LARGE_INTEGER Dividend,
IN LARGE_INTEGER MagicDivisor,
- IN CCHAR ShiftCount);
+ IN CCHAR ShiftCount)
{
LARGE_INTEGER ret;
ULONG64 ret64;
BOOLEAN Pos;
Pos = (Dividend.QuadPart >= 0);
- ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart
+ ret64 = UnsignedMultiplyHigh(Pos ? Dividend.QuadPart : -Dividend.QuadPart,
MagicDivisor.QuadPart);
ret64 >>= ShiftCount;
ret.QuadPart = Pos ? ret64 : -ret64;