Skip to content
版 本

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);

免 责 声 明:本 站 内 容 由 asc-devkit 仓 master 分 支 自 动 编 译 生 成,属 于 持 续 开 发 版 本,可 能 存 在 缺 陷,仅 供 预 览 与 参 考。如 需 稳 定 及 商 用 资 料,请 查 阅 官 方 昇 腾 社 区