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

Overview

Float vector comparison.

Performs the comparison between lanes and return the result of the comparison as a bit in the return word.

Functions

unsigned int fpge (v8float acc, v16float xbuf, int xstart, unsigned int xoffs)
 Greater-equal-operator of real single precision floating point vectors.
 
unsigned int fplt (v8float acc, v32float xbuf, int xstart, unsigned int xoffs) inline unsigned int fplt(v8float acc
 Less-than-operator of real single precision floating point vectors.
 
unsigned int fplt (v8float acc, v8float xbuf) inline unsigned int fpge(v8float acc
 Less-than-operator of real single precision floating point vectors.
 

Variables

unsigned int v16float xbuf
 

Floating-point selection functions

unsigned int v16float int xstart
 
unsigned int v16float int
unsigned int 
xoffs
 
v8float fpshuffle (v16float xbuf, int xstart, unsigned int xoffs)
 
v4cfloat fpshuffle (v16cfloat xbuf, int xstart, unsigned int xoffs)
 
v4cfloat fpshuffle (v8cfloat xbuf, int xstart, unsigned int xoffs)
 

Function Documentation

unsigned int fpge ( v8float  acc,
v16float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Greater-equal-operator of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = acc[i] >= xbuf[xstart + xoffs[i]]
Returns
Scalar integer with one comparison result per bit.
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.
unsigned int fplt ( v8float  acc,
v32float  xbuf,
int  xstart,
unsigned int  xoffs 
)

Less-than-operator of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = acc[i] < xbuf[xstart + xoffs[i]]
Returns
Scalar integer with one comparison result per bit.
Parameters
accIncoming accumulation vector.
xbufInput buffer.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.

Less-than-operator of real single precision floating point vectors

for (i = 0 ; i < 8 ; i++)
ret[i] = acc[i] < xbuf[xstart + xoffs[i]]
Returns
Scalar integer with one comparison result per bit.
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.
unsigned int fplt ( v8float  acc,
v8float  xbuf 
)

Less-than-operator of real single precision floating point vectors.

for (i = 0 ; i < 8 ; i++)
ret[i] = acc[i] < xbuf[i]
Returns
Scalar integer with one comparison result per bit.
Parameters
accIncoming accumulation vector.
xbufInput buffer.

Greater-equal-operator of real single precision floating point vectors

for (i = 0 ; i < 8 ; i++)
ret[i] = acc[i] >= xbuf[xstart + xoffs[i]]
Returns
Scalar integer with one comparison result per bit.
Parameters
accIncoming accumulation vector.
xbufInput buffer.
xstartStarting offset for all lanes of X.
xoffs4 bits per lane: Additional lane-dependent offset for X.
v8float fpshuffle ( v16float  xbuf,
int  xstart,
unsigned int  xoffs 
)
v4cfloat fpshuffle ( v16cfloat  xbuf,
int  xstart,
unsigned int  xoffs 
)
v4cfloat fpshuffle ( v8cfloat  xbuf,
int  xstart,
unsigned int  xoffs 
)

Variable Documentation

unsigned int v32float xbuf
int unsigned int xoffs
Initial value:
{
true,false,fpadd_add,0x00,fpcmp_nrm)
int xstart