These intrinsics allow inserting or extracting of an individual element into/from a vector.
More...
These intrinsics allow inserting or extracting of an individual element into/from a vector.
Inserting can be done either by pushing in a new value at one end of the vector and shifting or replacing a specific element.
|
Update element determined by idx in vector a by value b
- Parameters
-
v | The vector containing the element to be updated |
b | value to update. |
idx | Index used to choose where to update in vector a |
|
v64int8 | upd_elem (v64int8 v, int idx, char b) |
|
v32int16 | upd_elem (v32int16 v, int idx, short b) |
|
v16int32 | upd_elem (v16int32 v, int idx, int b) |
|
v64uint8 | upd_elem (v64uint8 v, int idx, unsigned char b) |
|
v32uint16 | upd_elem (v32uint16 v, int idx, unsigned short b) |
|
v16uint32 | upd_elem (v16uint32 v, int idx, unsigned int b) |
|
v32bfloat16 | upd_elem (v32bfloat16 v, int idx, bfloat16 b) |
|
v16cint16 | upd_elem (v16cint16 v, int idx, cint16 b) |
|
v8cint32 | upd_elem (v8cint32 v, int idx, cint32 b) |
|
v128int4 | insert (v128int4 v, int idx, v2int4 b) |
|
v128int4 | insert (v128int4 v, int idx, v4int4 b) |
|
v128int4 | insert (v128int4 v, int idx, v8int4 b) |
|
v128int4 | insert (v128int4 v, int idx, v16int4 b) |
|
v64int8 | insert (v64int8 v, int idx, char b) |
|
v64int8 | insert (v64int8 v, int idx, v2int8 b) |
|
v64int8 | insert (v64int8 v, int idx, v4int8 b) |
|
v64int8 | insert (v64int8 v, int idx, v8int8 b) |
|
v32int16 | insert (v32int16 v, int idx, short b) |
|
v32int16 | insert (v32int16 v, int idx, v2int16 b) |
|
v32int16 | insert (v32int16 v, int idx, v4int16 b) |
|
v16int32 | insert (v16int32 v, int idx, int b) |
|
v16int32 | insert (v16int32 v, int idx, v2int32 b) |
|
v128uint4 | insert (v128uint4 v, int idx, v2uint4 b) |
|
v128uint4 | insert (v128uint4 v, int idx, v4uint4 b) |
|
v128uint4 | insert (v128uint4 v, int idx, v8uint4 b) |
|
v128uint4 | insert (v128uint4 v, int idx, v16uint4 b) |
|
v64uint8 | insert (v64uint8 v, int idx, unsigned char b) |
|
v64uint8 | insert (v64uint8 v, int idx, v2uint8 b) |
|
v64uint8 | insert (v64uint8 v, int idx, v4uint8 b) |
|
v64uint8 | insert (v64uint8 v, int idx, v8uint8 b) |
|
v32uint16 | insert (v32uint16 v, int idx, unsigned short b) |
|
v32uint16 | insert (v32uint16 v, int idx, v2uint16 b) |
|
v32uint16 | insert (v32uint16 v, int idx, v4uint16 b) |
|
v16uint32 | insert (v16uint32 v, int idx, unsigned int b) |
|
v16uint32 | insert (v16uint32 v, int idx, v2uint32 b) |
|
v16cint16 | insert (v16cint16 v, int idx, cint16 b) |
|
v16cint16 | insert (v16cint16 v, int idx, v2cint16 b) |
|
v32bfloat16 | insert (v32bfloat16 v, int idx, bfloat16 b) |
|
v32bfloat16 | insert (v32bfloat16 v, int idx, v2bfloat16 b) |
|
v32bfloat16 | insert (v32bfloat16 v, int idx, v4bfloat16 b) |
|
v16float | insert (v16float v, int idx, float b) |
|
v128int4 | insert (v128int4 v, int idx, unsigned long long b) |
|
v64int8 | insert (v64int8 v, int idx, unsigned long long b) |
|
v32int16 | insert (v32int16 v, int idx, unsigned long long b) |
|
v16int32 | insert (v16int32 v, int idx, unsigned long long b) |
|
v128uint4 | insert (v128uint4 v, int idx, unsigned long long b) |
|
v64uint8 | insert (v64uint8 v, int idx, unsigned long long b) |
|
v32uint16 | insert (v32uint16 v, int idx, unsigned long long b) |
|
v16uint32 | insert (v16uint32 v, int idx, unsigned long long b) |
|
v16cint16 | insert (v16cint16 v, int idx, unsigned long long b) |
|
v32bfloat16 | insert (v32bfloat16 v, int idx, unsigned long long b) |
|
v8cint32 | insert (v8cint32 v, int idx, cint32 b) |
|
v8cfloat | insert (v8cfloat v, int idx, cfloat b) |
|
|
Extract element determined by idx from vector a
- Parameters
-
v | The vector from which the element will be extracted from |
idx | Index used to choose element in vector |
sign | Sign of the extracted data |
|
v2int4 | ext_v2int4 (v128int4 v, int idx, int sign) |
|
v4int4 | ext_v4int4 (v128int4 v, int idx, int sign) |
|
v8int4 | ext_v8int4 (v128int4 v, int idx, int sign) |
|
v16int4 | ext_v16int4 (v128int4 v, int idx, int sign) |
|
char | ext_elem (v64int8 v, int idx, int sign) |
|
v2int8 | ext_v2int8 (v64int8 v, int idx, int sign) |
|
v4int8 | ext_v4int8 (v64int8 v, int idx, int sign) |
|
v8int8 | ext_v8int8 (v64int8 v, int idx, int sign) |
|
short | ext_elem (v32int16 v, int idx, int sign) |
|
v2int16 | ext_v2int16 (v32int16 v, int idx, int sign) |
|
v4int16 | ext_v4int16 (v32int16 v, int idx, int sign) |
|
int | ext_elem (v16int32 v, int idx, int sign) |
|
v2int32 | ext_v2int32 (v16int32 v, int idx, int sign) |
|
v2uint4 | ext_v2uint4 (v128uint4 v, int idx, int sign) |
|
v4uint4 | ext_v4uint4 (v128uint4 v, int idx, int sign) |
|
v8uint4 | ext_v8uint4 (v128uint4 v, int idx, int sign) |
|
v16uint4 | ext_v16uint4 (v128uint4 v, int idx, int sign) |
|
unsigned char | ext_elem (v64uint8 v, int idx, int sign) |
|
v2uint8 | ext_v2uint8 (v64uint8 v, int idx, int sign) |
|
v4uint8 | ext_v4uint8 (v64uint8 v, int idx, int sign) |
|
v8uint8 | ext_v8uint8 (v64uint8 v, int idx, int sign) |
|
unsigned short | ext_elem (v32uint16 v, int idx, int sign) |
|
v2uint16 | ext_v2uint16 (v32uint16 v, int idx, int sign) |
|
v4uint16 | ext_v4uint16 (v32uint16 v, int idx, int sign) |
|
unsigned int | ext_elem (v16uint32 v, int idx, int sign) |
|
v2uint32 | ext_v2uint32 (v16uint32 v, int idx, int sign) |
|
cint16 | ext_elem (v16cint16 v, int idx, int sign) |
|
v2cint16 | ext_v2cint16 (v16cint16 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v128int4 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v64int8 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v32int16 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v16int32 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v128uint4 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v64uint8 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v32uint16 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v16uint32 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v16cint16 v, int idx, int sign) |
|
unsigned long long | ext_u64 (v32bfloat16 v, int idx, int sign) |
|
cint32 | ext_elem (v8cint32 v, int idx, int sign) |
|
bfloat16 | ext_elem (v32bfloat16 v, int idx, int sign) |
|
v2bfloat16 | ext_v2bfloat16 (v32bfloat16 v, int idx, int sign) |
|
v4bfloat16 | ext_v4bfloat16 (v32bfloat16 v, int idx, int sign) |
|
v2int4 | extract_v2int4 (v128int4 v, int idx, int sign) |
|
v4int4 | extract_v4int4 (v128int4 v, int idx, int sign) |
|
v8int4 | extract_v8int4 (v128int4 v, int idx, int sign) |
|
v16int4 | extract_v16int4 (v128int4 v, int idx, int sign) |
|
char | extract_elem (v64int8 v, int idx, int sign) |
|
v2int8 | extract_v2int8 (v64int8 v, int idx, int sign) |
|
v4int8 | extract_v4int8 (v64int8 v, int idx, int sign) |
|
v8int8 | extract_v8int8 (v64int8 v, int idx, int sign) |
|
short | extract_elem (v32int16 v, int idx, int sign) |
|
v2int16 | extract_v2int16 (v32int16 v, int idx, int sign) |
|
v4int16 | extract_v4int16 (v32int16 v, int idx, int sign) |
|
int | extract_elem (v16int32 v, int idx, int sign) |
|
v2int32 | extract_v2int32 (v16int32 v, int idx, int sign) |
|
v2uint4 | extract_v2uint4 (v128uint4 v, int idx, int sign) |
|
v4uint4 | extract_v4uint4 (v128uint4 v, int idx, int sign) |
|
v8uint4 | extract_v8uint4 (v128uint4 v, int idx, int sign) |
|
v16uint4 | extract_v16uint4 (v128uint4 v, int idx, int sign) |
|
unsigned char | extract_elem (v64uint8 v, int idx, int sign) |
|
v2uint8 | extract_v2uint8 (v64uint8 v, int idx, int sign) |
|
v4uint8 | extract_v4uint8 (v64uint8 v, int idx, int sign) |
|
v8uint8 | extract_v8uint8 (v64uint8 v, int idx, int sign) |
|
unsigned short | extract_elem (v32uint16 v, int idx, int sign) |
|
v2uint16 | extract_v2uint16 (v32uint16 v, int idx, int sign) |
|
v4uint16 | extract_v4uint16 (v32uint16 v, int idx, int sign) |
|
unsigned int | extract_elem (v16uint32 v, int idx, int sign) |
|
v2uint32 | extract_v2uint32 (v16uint32 v, int idx, int sign) |
|
cint32 | extract_elem (v8cint32 v, int idx, int sign) |
|
cint16 | extract_elem (v16cint16 v, int idx, int sign) |
|
v2cint16 | extract_v2cint16 (v16cint16 v, int idx, int sign) |
|
bfloat16 | extract_elem (v32bfloat16 v, int idx, int sign) |
|
v2bfloat16 | extract_v2bfloat16 (v32bfloat16 v, int idx, int sign) |
|
v4bfloat16 | extract_v4bfloat16 (v32bfloat16 v, int idx, int sign) |
|
float | extract_elem (v16float v, int idx, int sign) |
|
float | extract_elem (v16float v, int idx) |
|
float | get_lo (v1cfloat) |
|
float | get_hi (v1cfloat) |
|
cfloat | extract_elem (v8cfloat v, int idx) |
|
cfloat | extract_elem (v8cfloat v, int idx, int sign) |
|
|
Extract element determined by idx from vector a
- Parameters
-
v | The vector from which the element will be extracted from |
idx | Index used to choose element in vector |
|
v2int4 | ext_v2int4 (v128int4 v, int idx) |
|
v4int4 | ext_v4int4 (v128int4 v, int idx) |
|
v8int4 | ext_v8int4 (v128int4 v, int idx) |
|
v16int4 | ext_v16int4 (v128int4 v, int idx) |
|
char | ext_elem (v64int8 v, int idx) |
|
v2int8 | ext_v2int8 (v64int8 v, int idx) |
|
v4int8 | ext_v4int8 (v64int8 v, int idx) |
|
v8int8 | ext_v8int8 (v64int8 v, int idx) |
|
short | ext_elem (v32int16 v, int idx) |
|
v2int16 | ext_v2int16 (v32int16 v, int idx) |
|
v4int16 | ext_v4int16 (v32int16 v, int idx) |
|
int | ext_elem (v16int32 v, int idx) |
|
v2int32 | ext_v2int32 (v16int32 v, int idx) |
|
v2uint4 | ext_v2uint4 (v128uint4 v, int idx) |
|
v4uint4 | ext_v4uint4 (v128uint4 v, int idx) |
|
v8uint4 | ext_v8uint4 (v128uint4 v, int idx) |
|
v16uint4 | ext_v16uint4 (v128uint4 v, int idx) |
|
unsigned char | ext_elem (v64uint8 v, int idx) |
|
v2uint8 | ext_v2uint8 (v64uint8 v, int idx) |
|
v4uint8 | ext_v4uint8 (v64uint8 v, int idx) |
|
v8uint8 | ext_v8uint8 (v64uint8 v, int idx) |
|
unsigned short | ext_elem (v32uint16 v, int idx) |
|
v2uint16 | ext_v2uint16 (v32uint16 v, int idx) |
|
v4uint16 | ext_v4uint16 (v32uint16 v, int idx) |
|
unsigned int | ext_elem (v16uint32 v, int idx) |
|
v2uint32 | ext_vu2int32 (v16uint32 v, int idx) |
|
cint16 | ext_elem (v16cint16 v, int idx) |
|
v2cint16 | ext_v2cint16 (v16cint16 v, int idx) |
|
cint32 | ext_elem (v8cint32 v, int idx) |
|
bfloat16 | ext_elem (v32bfloat16 v, int idx) |
|
v2bfloat16 | ext_v2bfloat16 (v32bfloat16 v, int idx) |
|
v4bfloat16 | ext_v4bfloat16 (v32bfloat16 v, int idx) |
|
v2int4 | extract_v2int4 (v128int4 v, int idx) |
|
v4int4 | extract_v4int4 (v128int4 v, int idx) |
|
v8int4 | extract_v8int4 (v128int4 v, int idx) |
|
v16int4 | extract_v16int4 (v128int4 v, int idx) |
|
char | extract_elem (v64int8 v, int idx) |
|
v2int8 | extract_v2int8 (v64int8 v, int idx) |
|
v4int8 | extract_v4int8 (v64int8 v, int idx) |
|
v8int8 | extract_v8int8 (v64int8 v, int idx) |
|
short | extract_elem (v32int16 v, int idx) |
|
v2int16 | extract_v2int16 (v32int16 v, int idx) |
|
v4int16 | extract_v4int16 (v32int16 v, int idx) |
|
int | extract_elem (v16int32 v, int idx) |
|
v2int32 | extract_v2int32 (v16int32 v, int idx) |
|
v2uint4 | extract_v2uint4 (v128uint4 v, int idx) |
|
v4uint4 | extract_v4uint4 (v128uint4 v, int idx) |
|
v8uint4 | extract_v8uint4 (v128uint4 v, int idx) |
|
v16uint4 | extract_v16uint4 (v128uint4 v, int idx) |
|
unsigned char | extract_elem (v64uint8 v, int idx) |
|
v2uint8 | extract_v2uint8 (v64uint8 v, int idx) |
|
v4uint8 | extract_v4uint8 (v64uint8 v, int idx) |
|
v8uint8 | extract_v8uint8 (v64uint8 v, int idx) |
|
unsigned short | extract_elem (v32uint16 v, int idx) |
|
v2uint16 | extract_v2uint16 (v32uint16 v, int idx) |
|
v4uint16 | extract_v4uint16 (v32uint16 v, int idx) |
|
unsigned int | extract_elem (v16uint32 v, int idx) |
|
v2uint32 | extract_v2uint32 (v16uint32 v, int idx) |
|
cint16 | extract_elem (v16cint16 v, int idx) |
|
v2cint16 | extract_v2cint16 (v16cint16 v, int idx) |
|
cint32 | extract_elem (v8cint32 v, int idx) |
|
bfloat16 | extract_elem (v32bfloat16 v, int idx) |
|
v2bfloat16 | extract_v2bfloat16 (v32bfloat16 v, int idx) |
|
v4bfloat16 | extract_v4bfloat16 (v32bfloat16 v, int idx) |
|