28.2.81 __builtin_modsd
Architecture
dsPIC33C/E/F, dsPIC30
Description
Issues the DSC architecture’s native signed divide support with the same restrictions given in the dsPIC30F/33F Programmer’s Reference Manual (DS-70000157). Notably, if the quotient does not fit into a 16-bit result, the results (including remainder) are unexpected. This form of the built-in function will capture only the remainder.
Prototype
int16_t __builtin_modsd(int32_t dividend,
int16_t divisor);
Arguments
dividend
– number to be divided
divisor
– number to divide by
Return Value
Remainder.
Machine Instruction
div.sd
Error Messages
None