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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

100 Views
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 Kudos
0 Replies