c - convert int 32 to q31 or f32 -


i trying understand how this. know how fixed point , floating point notations work, wondering how can convert int32 q31 or f32.
if understand q31 correctly leaves 31 bits fractional part , 1 bit whole part, , f32 floating point notation.

i'm trying figure out how can efficiently convert between two?

i using arm cmsis dsp library , there source codes convert between q31 , f32 receiving data int16 or int32. i'm assuming converting int floating point cumbersome in comparison going int fixed point using arm's libraries best speed i'm assuming. being said if q31 indeed operate way (and i'm hoping signed) say

    q31num=int32; 

and leave @ that? appreciated.

thanks in advance!

-scarlson


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -