touchgfx::muldiv() function
@fn static int32_t muldiv(int32_t factor1, int32_t factor2, int32_t divisor, int32_t& remainder) Multiply and divide. Multiply and divide without causing overflow. Multiplying two large values and subsequently dividing the result with another large value might cause an overflow in the intermediate result. The function muldiv() will multiply the two first values and divide the result by the third value without causing overflow (unless the final result would overflow). The remainder from the calculation is also returned.
Arguments
factor1
The first factor.
factor2
The second factor.
divisor
The divisor.
remainder
Return value
An int32_t.
Functions calling touchgfx::muldiv()
touchgfx::muldiv()
Type of touchgfx::muldiv()
touchgfx::muldiv()
int32_t all items filtered out