Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
© 2005-2011 Microchip Technology Inc. DS70157F-page 455
Section 6. Built-in Functions
Built-in Functions
6
__builtin_divud
Description:
Computes the quotient num / den. A math error exception occurs if den is zero. Function
arguments are unsigned, as is the function result. The command-line option -Wconversions
can be used to detect unexpected sign conversions.
Prototype:
unsigned int _ _builtin_divud(const unsigned
long num, const unsigned int den);
Argument:
num numerator
den denominator
Return Value:
Returns the unsigned integer value of the quotient num / den.
Assembler Operator / Machine Instruction:
div.ud
__builtin_dmaoffset
Description:
Obtains the offset of a symbol within DMA memory.
For example:
unsigned int result;
char buffer[256] _ _attribute_ _((space(dma)));
result = _ _builtin_dmaoffset(&buffer);
May generate:
mov #dmaoffset(buffer), w0
Prototype:
unsigned int _ _builtin_dmaoffset(const void *p);
Argument:
*p pointer to DMA address value
Return Value:
Returns the offset to a variable located in DMA memory.
Assembler Operator / Machine Instruction:
dmaoffset
Error Messages:
An error message appears if the parameter is not the address of a global symbol.
Protego_Release_01_05-Related-OEM-Documentation-PIC24FJ64GA004-Programmers_Reference_Manual.pdf