MPC5777C hw floating point execution time

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

MPC5777C hw floating point execution time

902件の閲覧回数
leonggz
Contributor I

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 返答(返信)

776件の閲覧回数
leonggz
Contributor I

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 件の賞賛

776件の閲覧回数
bwp530
Contributor IV

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

0 件の賞賛