28.2.14 __builtin_divmodud
Description
Issues the 16-bit architecture’s native unsigned 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
unsigned int __builtin_divmodud(
unsigned long dividend, unsigned int divisor,
unsigned 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
divmodud
Error Messages
None