EngMulDiv

int EngMulDiv(

    int a,

    int b,

    int c

   );

EngMulDiv multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value. The return value is rounded up or down to the nearest integer.

Parameters

a
32-bit signed multiplicand
b
32-bit signed multiplier
c
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.

Comments

Drivers should not pass a zero divisor to EngMulDiv.