为什么不像浮点二进制数那样加速浮点十进制数硬件? [英] Why aren't Floating-Point Decimal numbers hardware accelerated like Floating-Point Binary numbers?

查看:88
本文介绍了为什么不像浮点二进制数那样加速浮点十进制数硬件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在硬件中实现它值得吗?如果是,为什么?

Is it worth it to implement it in hardware? If yes why? If not why not?

对不起,我认为很明显我在说十进制有理数!像 decNumber ++ 这样的东西, .NET的十进制 ...希望它现在很清楚:)

Sorry I thought it is clear that I am talking about Decimal Rational Numbers! Ok something like decNumber++ for C++, decimal for .NET... Hope it is clear now :)

推荐答案

IEEE 754:2008 标准确实使用问题中引用的软件中所示的表示法定义了硬件十进制浮点数。该标准的早期版本( IEEE 754:1985 )没有提供十进制浮点数。当前的大多数硬件都实现1985年标准,而不是2008年标准,但是IBM的iSeries计算机使用 Power6 芯片具有这种支持, z10 大型机。

The latest revision of the IEEE 754:2008 standard does indeed define hardware decimal floating point numbers, using the representations shown in the software referenced in the question. The previous version of the standard (IEEE 754:1985) did not provide decimal floating point numbers. Most current hardware implements the 1985 standard and not the 2008 standard, but IBM's iSeries computers using Power6 chips have such support, and so do the z10 mainframes.

十进制浮点数的标准化工作是由Mike Cowlishaw率先进行的。 IBM UK,拥有一个网站,其中包含有用的信息(包括所涉及的软件)。可能在其他时候,其他硬件制造商也将在其芯片上引入十进制浮点单位,但是我还没有听到关于英特尔何时(或是否会添加)的方向说明。英特尔确实已经针对以下软件优化了软件库

The standardization effort for decimal floating point was spearheaded by Mike Cowlishaw of IBM UK, who has a web site full of useful information (including the software in the question). It is likely that in due course, other hardware manufacturers will also introduce decimal floating point units on their chips, but I have not heard a statement of direction for when (or whether) Intel might add one. Intel does have optimized software libraries for it.

C标准委员会正在寻求增加对十进制浮点数的支持,其工作范围为TR 24732。

The C standards committee is looking to add support for decimal floating point and that work is TR 24732.

这篇关于为什么不像浮点二进制数那样加速浮点十进制数硬件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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