31 INT64 i64Multiplied, i64Result;
43 iMultiplicand = -iMultiplicand;
48 i64Multiplied =
Int32x32To64(iMultiplicand, iMultiplier);
51 if (i64Multiplied >= 0)
53 i64Multiplied += (iDivisor / 2);
57 i64Multiplied -= (iDivisor / 2);
61 i64Result = i64Multiplied / iDivisor;
75 return (
INT)i64Result;
#define Int32x32To64(a, b)
INT APIENTRY EngMulDiv(_In_ INT iMultiplicand, _In_ INT iMultiplier, _In_ INT iDivisor)