28.2.37 __builtin_edac_16

Architecture

dsPIC33A

Description

Compute the partial Euclidean distance of (x-y)2  adding it to an accumulator.

Example:

volatile register int Accum asm("A");
int16_t x,y;

Accum = __builtin_edac_16(Accum,x,y);

Prototype

int __builtin_edac_16(int Accum, int16_t x, int16_t y);

Arguments

Accum - accumulator to, well, accumulate the result

x - left hand side of the subtraction

y - right hand side of the subtraction

Return Value

Returns the accumulation of Accum + (x-y)2 .

Error Messages 

None.