产品 |
是否支持 |
|---|---|
Ascend 950PR/Ascend 950DT |
√ |
x |
|
x |
|
x |
|
x |
|
x |
|
x |
对CTRL寄存器(控制寄存器)的特定比特位做重置。
template <int8_t startBit, int8_t endBit> __aicore__ static inline void ResetCtrlSpr()
参数名 |
描述 |
|---|---|
startBit |
起始比特位索引。 |
endBit |
终止比特位索引。 |
无
仅支持CTRL[8:6]、CTRL[10:9]、CTRL[48]、CTRL[50]、CTRL[53]、CTRL[59]、CTRL[60]比特位。
如下示例中重置CTRL[48]比特位,使能饱和模式。
AscendC::SetCtrlSpr<48, 48>(1); ... AscendC::ResetCtrlSpr<48, 48>();