产品 |
是否支持 |
|---|---|
Ascend 950PR/Ascend 950DT |
√ |
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
读取CTRL寄存器(控制寄存器)特定比特位上的值。
template <int8_t startBit, int8_t endBit> __aicore__ static inline int64_t GetCtrlSpr()
参数名 |
描述 |
|---|---|
startBit |
起始比特位索引。 |
endBit |
终止比特位索引。 |
CTRL寄存器对应比特位上的值。
无
如下为读取CTRL[48]比特位数值的示例。
int64_t valueCtrlAfterSet = AscendC::GetCtrlSpr<48, 48>();