Skip to content

asc_position_mode

asc_position_mode用于表示源或目的操作数在寄存器中的奇偶位置,供Reg类型转换和融合计算接口选择数据位置。常量ASC_POSITION_EVEN和ASC_POSITION_ODD可直接作为对应接口的位置参数。

头文件路径为:"c_api/defs/enum.h"。

枚举类具体定义​

C++
enum class asc_position_mode {
    EVEN = 0,
    ODD
};

constexpr std::integral_constant<asc_position_mode, asc_position_mode::EVEN> ASC_POSITION_EVEN;
constexpr std::integral_constant<asc_position_mode, asc_position_mode::ODD> ASC_POSITION_ODD;

枚举值详解​

表1 枚举值说明

枚举值取值说明对应常量
EVEN0选择偶数位置。ASC_POSITION_EVEN
ODD1选择奇数位置。ASC_POSITION_ODD

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