vreducev2
功能说明
根据Compare Mask或Pattern Mode对输入进行reduce操作。
函数原型
void vreducev2(__ubuf__ uint16_t *dst, __ubuf__ uint16_t *src0, __ubuf__ uint16_t *src1, uint16_t repeat, uint8_t src0BlockStride, uint8_t patternMode, uint16_t src0RepeatStride, uint8_t src1RepeatStride); void vreducev2(__ubuf__ uint32_t *dst, __ubuf__ uint32_t *src0, __ubuf__ uint32_t *src1, uint16_t repeat, uint8_t src0BlockStride, uint8_t patternMode, uint16_t src0RepeatStride, uint8_t src1RepeatStride);
参数说明
参数名  | 
说明  | 
取值范围  | 
单位  | 
|---|---|---|---|
patternMode  | 
  | 
[0, 7]  | 
/  | 
patternMode  | 
mask模式  | 
|---|---|
0  | 
normal mode  | 
1  | 
010101…01  | 
2  | 
101010…10  | 
3  | 
00010001…0001  | 
4  | 
00100010…0010  | 
5  | 
01000100…0100  | 
6  | 
10001000…1000  | 
7  | 
11111111…1111  | 
流水类型
PIPE_V
父主题: 规约运算