如何用16位字实现浮点数 [英] How to implement floating point using 16 bit words

查看:803
本文介绍了如何用16位字实现浮点数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何实现浮点运算,如果我只有16位宽的内存位置?我试图实现IEEE-754 32位单精度浮点数。



谢谢

解决方案

有没有简单的方法来做到这一点。我必须为程序集中的所有函数创建我自己的软件库。
如果任何人有关于如何执行此操作的问题,我实现了加法,减法,乘法,平方根,除法,余弦和正弦。


How would I implement floating point operations if I only have memory locations that are 16 bits wide?

I am trying to implement IEEE-754 32-bit single precision floating point.

Thank you

解决方案

I ended up figuring out that there is no easy way to to this. I had to create my own software library for all of the functions in assembly.
If anybody has questions regarding how to do this, I implemented add,subtract,multiply,square root, divide, cosine, and sine.

这篇关于如何用16位字实现浮点数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆