| AI Engine Intrinsics User Guide (v2026.1)

Loading...
Searching...
No Matches
Integer
Intrinsics » Vector Operations » Vector Lane Selection » Simple

## 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.

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

## ◆ select16()

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.

## ◆ select32()

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.