28.2.13 __builtin_divmodsd

Description

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

Prototype

signed int __builtin_divmodsd(
signed long dividend, signed int divisor,
 signed int *remainder);

Argument

dividend – number to be divided

divisor – number to divide by

remainder – pointer to remainder

Return Value

Quotient and remainder.

Assembler Operator/ Machine Instruction

divmodsd

Error Messages

None