AnsweredAssumed Answered

For certain complex fpu instructions from math.h library, how to calculate the number of cycles taken to complete an instruction on ARM cortex M4 based MCU(STM32)

Question asked by de.sa on Dec 22, 2014
Latest reply on Dec 28, 2014 by Clive One
For example:
      output = asinf(num1)*180.0/PI; //result = 60
      output = output/2.0; //result = 30
      output = output * PI /180.0; //result = 0.5235987 radians (30 degrees0
      output = tanf(output); //result = sqrt(3)/3
      output = output / sqrt(3); //result = 1/3
      output = output * 6.0 + 9.9; //result = 11.9

Outcomes