Why does AMCLIB multiple function run slower than not using it?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why does AMCLIB multiple function run slower than not using it?

526 次查看
kiddyang
Contributor I

I have tesed runtime of MLIB_Mul_FLT and float*float(e.g. 1.2f*1.3f), and once MLIB_Mul_FLT spends about 0.22us, but when I directly use 1.2f*1.3f, it only spends about 0.1us.

Since MLIB_Mul_FLT is a inlined function, shouldn't these two methods be the same?

Why does it happen?

By the way, is the runtime of floating point multiplication normal(0.1us once)?Or should I turn on MPC5744P's FPU first by some code?

0 项奖励
回复
0 回复数