MPC5777C hw floating point execution time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5777C hw floating point execution time

898 Views
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 Kudos
2 Replies

772 Views
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 Kudos

772 Views
bwp530
Contributor IV

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

0 Kudos