On 10/19/2026 12:10 AM, Paul Rubin wrote:
> marcel hendrix <m…@iae.nl> writes:
>> Which implies H >= 83 for quad double extended precision,
>
> Extended precision = 80 bit numbers? So double extended = 160 bits, and
> quad double extended = 640 bits? Do you mean double quad extended which
> would be 320 bits?
No, extended double is an IEEE format that, e.g., matches the Intel FPU's 10 byte memory storage and has a mantissa of 64 bits. With 2 * 64 bits the mantissa of a double extended double becomes 128 bits, and a quad extended double will have a 256 bit mantissa. The extended variants appear not to exist (or are not very common), I have found no references for them yet (outside of the mainframe area). Double extended double is now working, but I have not looked at quad extended double yet.
With the old Motorola 96-bit format one could have had 80 and 160 bit mantissas, and then quad Motorola double would indeed be 320 bits.
> I think for all of these, anything above 256 bits
> and maybe anything above 128 bits, you probably want some MPFR-like
> arbitrary precision.
MPFR is definitely much faster.
> 80 bit extended is looking like an x86 artifact by now, maybe. I wonder
> if anything implements 128 bit extended. There's a spec for it in
> RISC-V but no implementations that I know of.
Given that the MPFR is 8 times faster than (my) double extended double, an FPU with > 80 bits probably can't compete on speed, although it might save memory. The MPFR is much too large if you only need a few functions
for large decimal input and output strings. The xd-fp library, with a full set of math functions, is only 800 lines of Forth including comments.
-marcel