soft_double:soft_double提供双精度浮点数据类型的C ++软件实现

时间:2021-04-17 13:59:34
【文件属性】:
文件名称:soft_double:soft_double提供双精度浮点数据类型的C ++软件实现
文件大小:67KB
文件格式:ZIP
更新时间:2021-04-17 13:59:34
embedded-systems floating-point-arithmetic floating-point-emulation C++ soft_double soft_double提供了64位双精度浮点数据类型的C ++软件实现。 一些编译器不支持内置的64位浮点类型,例如通常被称为double或long double 。 例如,通常用于Arduino等8位嵌入式系统或独立裸机AVR的avr-gcc工具链不支持64位double (在versoin 10之前)。 可以在此类系统上使用soft_double来提供64位double的软件仿真的可移植实现。 此C ++模板仅标头库实现了一个插入式双精度浮点类型,该类型实际上可以像常规的内置64位浮点类型double 。 soft_double实现常见的代数运算, sqrt和比较运算,并且还完全支持std::numeric_limits 。 soft_double使用仅标头的C ++ 14编写,并且与C ++ 14、17、20兼容。注意:正在进行与C ++ 11的向
【文件预览】:
soft_double-main
----.github()
--------workflows()
----soft_double.sln(1KB)
----soft_double.vcxproj.filters(4KB)
----util()
--------memory()
--------utility()
----LICENSE(1KB)
----test()
--------test.cpp(1008B)
--------test_soft_double_with_decwide_t_100k_digit_pi.cpp(3KB)
--------test_soft_double.cpp(14KB)
----README.md(2KB)
----math()
--------constants()
--------wide_decimal()
--------soft_double()
----soft_double.vcxproj(9KB)
----.gitignore(321B)

网友评论