NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
long muldiv32 ( long  a,
long  b,
long  c 
)
inline

Multiply and divide.

Multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value.

Parameters
a32-bit long value.
b32-bit long value.
c32-bit long value.
Returns
The result of multiplying a times b and dividing by c.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_muldiv32.nxc.