mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
[NDK]
Fix definition of RtlExtendedLargeIntegerDivide. svn path=/trunk/; revision=54375
This commit is contained in:
parent
432b05a591
commit
d14aee58bb
1 changed files with 21 additions and 1 deletions
|
@ -3555,8 +3555,23 @@ RtlEnlargedUnsignedMultiply(
|
||||||
return Product;
|
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
|
NTSYSAPI
|
||||||
LARGE_INTEGER
|
LARGE_INTEGER
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -3566,6 +3581,11 @@ RtlExtendedLargeIntegerDivide(
|
||||||
OUT PULONG Remainder OPTIONAL
|
OUT PULONG Remainder OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#endif /* defined(_AMD64_) || defined(_IA64_) */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
ULONG
|
ULONG
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
Loading…
Reference in a new issue