28.2.32 __builtin_modsd

Description

Issues the 16-bit architecture’s native signed divide support with the same restrictions given in the “dsPIC30F/33F Programmer’s Reference Manual” (DS70157). 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

signed int __builtin_modsd(signed long dividend,
 signed int divisor);

Argument

dividend – number to be divided

divisor – number to divide by

Return Value

Remainder.

Assembler Operator/ Machine Instruction

modsd

Error Messages

None