asc_loadalign_postupdate
产 品 支 持 情 况
| 产 品 | 是 否 支 持 |
|---|---|
| Ascend 950PR/Ascend 950DT | √ |
功 能 说 明
reg数 据 搬 运 接 口,适 用 于 从UB搬 入MaskReg。开 启post mode,每 调 用 一 次 接 口 更 新 目 的 操 作 数 在UB上 的 地 址。
函 数 原 型
普 通 搬 运
C++__simd_callee__ inline void asc_loadalign_postupdate(vector_bool& dst, __ubuf__ uint32_t*& src, int32_t offset)上 采 样 搬 运
C++__simd_callee__ inline void asc_loadalign_upsample_postupdate(vector_bool& dst, __ubuf__ uint32_t*& src, int32_t offset)下 采 样 搬 运
C++__simd_callee__ inline void asc_loadalign_downsample_postupdate(vector_bool& dst, __ubuf__ uint32_t*& src, int32_t offset)
参 数 说 明
| 参 数 名 | 输 入/输 出 | 描 述 |
|---|---|---|
| dst | 输 出 | 目 的 操 作 数(掩 码 寄 存 器)。 |
| src | 输 入 | 源 操 作 数(矢 量)的 起 始 地 址。 |
| offset | 输 入 | 数 据 搬 运 的 偏 移 量。 |
返 回 值 说 明
无
流 水 类 型
PIPE_V
约 束 说 明
无
调 用 示 例
C++
//数 据 总 量 为256
constexpr uint64_t total_length = 256;
vector_bool dst = asc_create_mask_b16(PAT_ALL);
__ubuf__ uint32_t src[total_length];
//数 据 搬 运 的 偏 移 量 为64
int32_t offset = 64;
asc_loadalign_postupdate(dst, src, offset);