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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

505件の閲覧回数
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 返答(返信)