Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ほとんどの人は逆に行きたいようです。理想的にはSSE2を使用して、固定小数点を浮動小数点に変換する高速な方法があるかどうか疑問に思っています。ストレートCまたはC++、あるいはasmでも問題ありません。
倍精度の FPU があれば簡単です。53 ビットの有効数字があります。SSE2 は倍精度です。
float conv_fx( int32_t fx ) { double fp = fx; fp = fp / double(1<<16); // multiplication by a constant return fp; }