AnsweredAssumed Answered

Half-precision floating-point

Question asked by jacob.ariel.001 on Feb 1, 2016
Latest reply on Feb 2, 2016 by Clive One
Hello,
Using STM32F4 and IAR I am trying to convert a float (32bit) into Half-precision floating-point (16bit).
(I am aware of the significant precision loss, but I have bandwidth limitations)

Looking at ST's AN4044 and IEEE 754-2008 it seems possible yet I can't figure out how to define it in IAR.

Is there a way to convert float to fp16 using the FPU, Using IAR / ASM instruction?
If you'd do it in code do you know any other fast method?

---
http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00047230.pdf
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0472g/BABBHHHF.html

Outcomes