Intrinsic-102 MulDiv

Top  Previous  Next

102: Result:= MulDiv(X, Y, Z);

 

This intrinsic calculates X * Y / Z using 64-bit arithmetic, and returns the 32-bit result. This prevents some 32-bit numbers from overflowing, which speeds up and simplifies certain integer math operations.