EngMulDiv function

The EngMulDiv function multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value.

Syntax


int EngMulDiv(
  _In_ int a,
  _In_ int b,
  _In_ int c
);

Parameters

a [in]

Specifies the 32-bit signed multiplicand.

b [in]

Specifies the 32-bit signed multiplier.

c [in]

Specifies the 32-bit signed divisor by which the result of a*b is to be divided.

Return value

EngMulDiv returns the signed 32-bit result of the multiplication and division. The return value is rounded up or down to the nearest integer.

Remarks

Drivers should not pass a zero divisor to EngMulDiv.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

 

 

Send comments about this topic to Microsoft

Show: