Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFllMulDiv function

Calculates ((a * b) + d) / c, where each term is a 64-bit signed value.

Syntax


LONGLONG WINAPI MFllMulDiv(
   LONGLONG a,
   LONGLONG b,
   LONGLONG c,
   LONGLONG d
);

Parameters

a

A multiplier.

b

Another multiplier.

c

The divisor.

d

The rounding factor.

Return value

Returns the result of the calculation. If numeric overflow occurs, the function returns _I64_MAX (positive overflow) or LLONG_MIN (negative overflow). If Mfplat.dll cannot be loaded, the function returns _I64_MAX.

Remarks

Note  A previous version of this topic described the parameters incorrectly. The divisor is c and the rounding factor is d.
 

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Show:
© 2016 Microsoft