Question
Faster way to do a 1/x operation ?
Hi All,
This is not really a specific STM32 question I suppose, so please excuse what might seem like a simple maths question for some of you.
How can I do a 1/x operation to a FLT number without using the VDIV command?
VDIV takes 14 clock cycles to complete, so best to avoid it if there is a quicker way.
Assume for the code below:
s10 = 5000
s6 = 1
vdiv.f32 s10, s6, s10
That does 1 / 5000 = 0.0002
Can the same be achieved using vmul instead?
Thanks.
