On 3/29/2021 6:13 PM, Suminda Sirinath Salpitikorala Dharmasena wrote:
This would be interesting to have.

It would be better if the full set of numbers b16-256 and d32-128 are
implemented so there is full coverage of all IEEE 754 numbers.

FYI, if one is need of such code in C today, you can look at the SoftFloat library (http://www.jhauser.us/arithmetic/SoftFloat.html):

Berkeley SoftFloat is a free, high-quality software implementation of binary floating-point that conforms to the IEEE Standard for Floating-Point Arithmetic. SoftFloat is completely faithful to the IEEE Standard, while at the same time being relatively fast. All functions dictated by the original 1985 version of the standard are supported except for conversions to and from decimal. The latest release of SoftFloat implements five floating-point formats: half-precision, single-precision, double-precision, double-extended-precision, and quadruple-precision. All required rounding modes, exception flags, and special values are supported. Fused multiply-add is also implemented for all formats except double-extended-precision.

HTH,

-Joe

Reply via email to