28.2.33 __builtin_modud
Description
Issues the 16-bit architecture’s native unsigned 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
unsigned int __builtin_modud(unsigned long dividend,
unsigned int
divisor);
Argument
dividend
– number to be divided
divisor
– number to divide by
Return Value
Remainder.
Assembler Operator/ Machine Instruction
modud
Error Messages
None