AnsweredAssumed Answered

How do I use math library and SPFP on MPC5674F.

Question asked by Hyenongi Jeong on Jan 3, 2019
Latest reply on Jan 16, 2019 by Martin Kovar

Hi,

 

I want to use Math function with SPFP. 

Ex> cos, sin, pow ..

 

There are my test report using SPFP ans SW mode.

 

I think math library doesn't use SPFP.

 

How can I use math function with SPFP(HW FPU)? 

 

  1. SW FPU + (FLOAT * FLOAT => 40000 times) => 112 ms
  2. SW FPU + (cos(FLOAT) => 2000 times)        => 114 ms
  3. SPFP + (FLOAT * FLOAT => 40000 times)     => 13 ms
  4. SPFP + (cos(FLOAT) => 2000 times)            => 114 ms
  5. SPFP only + (cos(FLOAT) => 2000 times       => 115 ms

 

 

fpu SPFP mpc5674f math

Outcomes