AI Engine Intrinsics  (AIE) r2p21
 All Data Structures Namespaces Functions Variables Typedefs Groups Pages
Integer

Overview

Simple Integer Vector Lane Selection

Select: Selects between the first set of lanes or the second one according to the value in 'select'. If the lane corresponding bit in select is 0 it returns the value in the first set of lanes,otherwise, if it is 1, it returns the value in the second set of lanes.

Shuffle: Shuffle selects from a single input acording to the start/offset computation.

To have more information in lane selection please refer to here.

Simple Lane Selection

v32int16 select32 (unsigned int select, v32int16 xbuff, v32int16 ybuff)
 Lane selection from 16-bit buffer.
 
v16int32 select16 (unsigned int select, v16int32 xbuff, v16int32 ybuff)
 Lane selection from 32-bit buffer.
 

Function Documentation

v16int32 select16 ( unsigned int  select,
v16int32  xbuff,
v16int32  ybuff 
)

Lane selection from 32-bit buffer.

Note
LSB of select param applies to lower lanes. Value of 0 in select will choose from xbuff and 1 will choose from ybuff.
v32int16 select32 ( unsigned int  select,
v32int16  xbuff,
v32int16  ybuff 
)

Lane selection from 16-bit buffer.

Note
LSB of select param applies to lower lanes. Value of 0 in select will choose from xbuff and 1 will choose from ybuff.