Most people seem to want to go the other way. I am wondering if there is a quick way to convert a fixed point to a floating point, ideally using SSE2. Either direct C, or C ++, or even asm will be fine.
This is easy if you have dual precision FPUs: there are 53 bits of significant digits. SSE2 has double precision.
float conv_fx( int32_t fx ) { double fp = fx; fp = fp / double(1<<16); // multiplication by a constant return fp; }
Source: https://habr.com/ru/post/1732119/More articles:C # Attempting to read or write protected memory - c #регулярное выражение для соответствия определенному тексту не связанному - javascriptесть ли какой-нибудь графический процессор с vim, подобный keybinding? - vimTransparent buttons in iPhone SDK - iphoneA readable font that is web safe - cssCannot get click () function to work with jQuery - jqueryjQuery + jQuery Form Submit Plugin + jQuery Validation Plugin - jqueryposition.hh: 46: error: expected unqualified-id before 'namespace - c ++How the LINQ extension chain disconnects from other extensions - c #Open SHIFT_JIS file in Ruby 1.8.7 - ruby | fooobar.comAll Articles