MPC5777C hw floating point execution time

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

MPC5777C hw floating point execution time

1,590 次查看
leonggz
Contributor II

hello..

i'm running a few lines of code and noticed the execution of the floating point math is pretty slow.. costing 10us to do one integer x float.. i'm using the DS for S32 power R17.1 and the Target Processor setting page of the property has the "Use hardware floating point" checked.. the user manual says single precision is fully supported but didn't elaborate the performance part. Any one any comments?

thanks

gzhang

0 项奖励
回复
2 回复数

1,464 次查看
leonggz
Contributor II

solved... add suffix F or f to constants so that they are deemed as single precision. otherwise they are considered double.. takes a lot longer. 

0 项奖励
回复

1,464 次查看
bwp530
Contributor IV

For this way, how much time do you take for float multiplication. Could you tell me?

0 项奖励
回复