5.3.46 _Q16divmod Function
This function returns the quotient and remainder of its arguments.
Include
<libq.h>
Prototype
_Q16 _Q16divmod(_Q16 dividend, _Q16 divisor, _Q16
*remainder);
Arguments
dividend |
a fixed-point number in Q16 format. The value of this argument ranges from 0 to 2147483647. |
divisor |
a fixed-point number in Q16 format. The value of this argument ranges from 0 to 2147483647. |
remainder |
a pointer to an object large enough to hold the remainder. This must be provided by the caller. |
Return Value
This function returns the quotient and remainder of its arguments. The values range from 0 to 2147483647.