昇腾社区首页
中文
注册
开发者
下载

vcopy

功能说明

UB内数据搬运。从src地址搬运至dst地址。

该接口支持MASK配置。只有MASK中控制位为1的元素才会写入dst(控制位为0的元素不复制)。b16单次处理src中128个连续元素(包含控制位为0的元素),b32单次处理src中64个连续元素(包含控制位为0的元素)。MASK配置详见set_vector_mask

接口原型

// 相同接口的不同原型区别在于源地址和目的地址的数据类型不同
void vcopy(__ubuf__ uint32_t *dst, __ubuf__ uint32_t *src, uint8_t repeat, uint16_t dstStride, uint16_t srcStride, uint16_t dstRepeatSize, uint16_t srcRepeatSize);

void vcopy(__ubuf__ int32_t *dst, __ubuf__ int32_t *src, uint8_t repeat, uint16_t dstStride, uint16_t srcStride, uint16_t dstRepeatSize, uint16_t srcRepeatSize);

void vcopy(__ubuf__ uint16_t *dst, __ubuf__ uint16_t *src, uint8_t repeat, uint16_t dstStride, uint16_t srcStride, uint16_t dstRepeatSize, uint16_t srcRepeatSize);

void vcopy(__ubuf__ int16_t *dst, __ubuf__ int16_t *src, uint8_t repeat, uint16_t dstStride, uint16_t srcStride, uint16_t dstRepeatSize, uint16_t srcRepeatSize);

参数说明

参数含义见表1 单目运算参数说明

流水类型

PIPE_V