AI Engine  (AIE) r2p15.2
 All Data Structures Functions Variables Groups Pages

Overview

Float vector max/min.

Performs the comparison between lanes and returns the result of the comparison (either max or min) as a lane in the output vector.

Functions

v8float fpmax (v8float acc, v32float xbuf, int xstart, unsigned int xoffs)
 Maximum of real single precision floating point vectors.
 
v8float fpmax (v8float acc, v16float xbuf, int xstart, unsigned int xoffs)
 Maximum of real single precision floating point vectors.
 
v8float fpmin (v8float acc, v32float xbuf, int xstart, unsigned int xoffs)
 Minimum of real single precision floating point vectors.
 
v8float fpmin (v8float acc, v16float xbuf, int xstart, unsigned int xoffs)
 Minimum of real single precision floating point vectors.
 

Function Documentation

v8float fpmax ( v8float  acc,
v32float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Maximum of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = max(acc[i],xbuf[xstart + xoffs[i]])
Returns
Operand which has the highest value.
Parameters
accIncoming accumulation vector.
xbufInput buffer.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.
v8float fpmax ( v8float  acc,
v16float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Maximum of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = max(acc[i],xbuf[xstart + xoffs[i]])
Returns
Operand which has the highest value.
Parameters
accIncoming accumulation vector.
xbufInput buffer. Small buffer variant.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.
v8float fpmin ( v8float  acc,
v32float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Minimum of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = min(acc[i],xbuf[xstart + xoffs[i]])
Returns
Operand which has the lowest value.
Parameters
accIncoming accumulation vector.
xbufInput buffer.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.
v8float fpmin ( v8float  acc,
v16float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Minimum of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = min(acc[i],xbuf[xstart + xoffs[i]])
Returns
Operand which has the lowest value.
Parameters
accIncoming accumulation vector.
xbufInput buffer. Small buffer variant.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.