x86-64长双精度 [英] x86-64 long double precision
本文介绍了x86-64长双精度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是80位填充到128还是实际的128位?如果前者除了去gmp之外还有另外一个选项来实现128的精度吗? b
$ b
解决方案
x86-64精度与常规x86相同。扩展双是80位,使用x87 ISA,添加了6个填充字节。没有128位的FP硬件。
一个软件实现的四倍或四倍精度的扩展可能受益于x86-64 64x64 => 128整数乘法指令。
What is the actual precision of long double on Intel 64-bit platforms? is it 80 bits padded to 128 or actual 128 bit?
if former, besides going gmp, is there another option to achieve true 128 precision?
解决方案
x86-64 precision is the same as regular x86. Extended double is 80 bits, using the x87 ISA, with 6 padding bytes added. There is no 128-bit FP hardware.
A software implementation of quad or extended quad precision might benefit from the x86-64 64x64 => 128 integer multiply instruction, though.
这篇关于x86-64长双精度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文