This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于IQMPY()的时间问题



专家您好:

想请教下下面两种方式的时间,哪个更短?

1.A=_IQmpy15(test1,16240); //test1是变量

2.A=(((int32_t)(test1) * (int32_t)(32768* 560/ 1130)) >> 15) ;//test1是变量

从汇编来看,1的汇编指令比2的指令多,那时间是不是2的短点?

我手上不好仿真,所以想直接请教下

谢谢