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
Post a Comment