cancel
Showing results for 
Search instead for 
Did you mean: 

number format multiply divide in STM32H757

vishalb1911
Visitor

Hi,

I am looking macro, in-bult function or lib to
1 - I can do 2 16-bit signed fraction number multiply or divide and result should also be in 16-bit signed fraction.
2 - define to convert any integer number (value less will be less than "1" to 16-bit) fraction number
2 REPLIES 2
vishalb1911
Visitor

we are working on real time data, so scaling is not working for us

 

TDK
Guru

> 1 - I can do 2 16-bit signed fraction number multiply or divide and result should also be in 16-bit signed fraction.

In the same instruction? There isn't an instruction for that. You could make your own macro but it wouldn't be particularly fast, which seems like the goal here.

If you feel a post has answered your question, please click "Accept as Solution".