28.2.23 __builtin_divmod_3216
Architecture
dsPIC33A
Description
Perform a mixed mode divide, returning the result and the remainder.
Prototype
int16_t __builtin_divmod_3216(const int32_t x, const int16_t y, int16_t *remainder);
Arguments
x
– numerator
y
– denominator
remainder
– location to store the remainder result
Return Value
The function returns
x
/y
and writes
the result of x
%y
to
the storage referenced by remainder
.
Machine Instruction
divs.l
Error Messages
None.