SW006012 Microchip Technology, SW006012 Datasheet - Page 145

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
__
Description:
builtin_ed
builtin_edac
Squares sqr, returning it as the result. Also prefetchs data for future
square operation by computing **xptr - **yptr and storing the
result in *distance.
xincr and yincr may be the literal values: -6, -4, -2, 0, 2, 4, 6 or an
integer value.
For example:
might generate:
int __builtin_ed(int sqr, int **xptr, int xincr,
sqr
xptr
xincr
yptr
yincr
distance
Returns the squared result to an accumulator.
ed
An error message will be displayed if:
• the result is not an accumulator register
• xptr is null
• yptr is null
• distance is null
Squares sqr and sums with the nominated accumulator register,
returning it as the result. Also prefetchs data for future square operation
by computing **xptr - **yptr and storing the result in *distance.
xincr and yincr may be the literal values: -6, -4, -2, 0, 2, 4, 6 or an
integer value.
For example:
might generate:
register int result asm("A");
int *xmemory, *ymemory;
int distance;
result = __builtin_ed(distance,
int **yptr, int yincr, int *distance);
register int result asm("A");
int *xmemory, *ymemory;
int distance;
result = __builtin_ed(distance,
MPLAB C30 Built-in Functions
ed w4*w4, A, [w8]+=2, [W10]+=2, w4
ed w4*w4, A, [w8]+=2, [W10]+=2, w4
Integer squared value.
Integer pointer to pointer to x prefetch.
Integer increment value of x prefetch.
Integer pointer to pointer to y prefetch.
Integer increment value of y prefetch.
Integer pointer to distance.
&xmemory, 2,
&ymemory, 2,
&distance);
&xmemory, 2,
&ymemory, 2,
&distance);
DS51284F-page 139

Related parts for SW006012