Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 462 © 2005-2011 Microchip Technology Inc.
__builtin_modsd
Description:
Issues the 16-bit architecture’s native signed divide support. 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.
__builtin_modud
Description:
Issues the 16-bit architecture’s native unsigned divide support. 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.

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh