双 - IEEE 754替代品 [英] Double - IEEE 754 alternatives

查看:137
本文介绍了双 - IEEE 754替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据以下网站:
http://en.cppreference.com/w/cpp / language / types

双精度浮点类型。通常IEEE-754 64位浮点类型。

"double - double precision floating point type. Usually IEEE-754 64 bit floating point type".

它说通常。 C ++ double 使用什么其他可能的格式/标准?什么编译器使用IEEE格式的替代?或架构?

It says "usually". What other possible formats/standard could C++ double use? What compiler uses an alternative to the IEEE format? Or architecture?

推荐答案

Vaxen,Crays和IBM大型机,仅举几例,大多数(所有?)的那些也可以做IEEE浮点,但有时只有一个特殊的附加。在其他情况下(IBM),IEEE算法可能带来显着的速度损失。

Vaxen, Crays, and IBM mainframes, to name just a few that are still in reasonably wide use. Most (all?) of those can also do IEEE floating point now, but sometimes only with a special add-on. In other cases (IBM) IEEE arithmetic can carry a significant speed penalty.

对于旧机器,大多数大型机(Unisys,Control Data等)格式,其中大多数不像IEEE,更不用说实际上符合。

As for older machines, most mainframes (Unisys, Control Data, etc.) used unique floating point formats, most of which weren't even much like IEEE, not to mention actually conforming.

这篇关于双 - IEEE 754替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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