mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
add missing definition of MultiplyHigh and UnsignedMultiplyHigh, fix typos.
svn path=/trunk/; revision=40090
This commit is contained in:
parent
5e3ee25bd3
commit
1ec5957c2c
1 changed files with 6 additions and 2 deletions
|
@ -1864,6 +1864,10 @@ RtlExtendedLargeIntegerDivide(
|
|||
#endif
|
||||
|
||||
#if defined(_AMD64_)
|
||||
|
||||
#define MultiplyHigh __mulh
|
||||
#define UnsignedMultiplyHigh __umulh
|
||||
|
||||
//DECLSPEC_DEPRECATED_DDK
|
||||
static __inline
|
||||
LARGE_INTEGER
|
||||
|
@ -1871,13 +1875,13 @@ NTAPI_INLINE
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue