mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 04:03:56 +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;
|
||||
}
|
||||
|
||||
#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
|
||||
|
@ -3566,6 +3581,11 @@ RtlExtendedLargeIntegerDivide(
|
|||
OUT PULONG Remainder OPTIONAL
|
||||
);
|
||||
|
||||
#endif /* defined(_AMD64_) || defined(_IA64_) */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
NTSYSAPI
|
||||
ULONG
|
||||
NTAPI
|
||||
|
|
Loading…
Reference in a new issue