🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #132

Re: FCONSTANT specification

#132
From: marcel hendrix
Date: Sun, 18 Oct 2026 22:45
37 lines
3272 bytes
On 10/19/2026 12:10 AM, Paul Rubin wrote:
> marcel hendrix <mhx@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
Technical Details
Message-ID: <11b3i7a$22vg2$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11aide4$1ibse$1@dont-email.me> <2026Oct12.203631@mips.complang.tuwien.ac.at> <11am4ae$fte4$1@dont-email.me> <nnd$6e3248f1$0599409a@3ae3c368d79558dd> <2026Oct14.102517@mips.complang.tuwien.ac.at> <6ad02ef0$1@news.ausics.net> <11as7ct$2voh4$1@dont-email.me> <11atg9c$1t6lk$1@dont-email.me> <87zewaslrh.fsf@nightsong.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: marcel hendrix <mhx@iae.nl>
Newsgroups: comp.lang.forth
Subject: Re: FCONSTANT specification
Date: Mon, 19 Oct 2026 00:45:59 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <11b3i7a$22vg2$1@dont-email.me>
References: <11aide4$1ibse$1@dont-email.me>
 <2026Oct12.203631@mips.complang.tuwien.ac.at> <11am4ae$fte4$1@dont-email.me>
 <nnd$6e3248f1$0599409a@3ae3c368d79558dd>
 <2026Oct14.102517@mips.complang.tuwien.ac.at> <6ad02ef0$1@news.ausics.net>
 <11as7ct$2voh4$1@dont-email.me> <11atg9c$1t6lk$1@dont-email.me>
 <87zewaslrh.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Oct 2026 22:46:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2194946"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+5c8WQn+J3em0kT1vAf2dcTJlF+tDNgWc="; posting-host="f2adaf6d8eda67b580e1130b162cfdc5"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:syT90f59Lr7ul2olAHyt4z2mKqs= sha256:myBEr3tP08whroiR8NFlf4SYlxt6B/AkikC6CnYUn3c=
	sha1:9kgDy3iDguyeVOzHYj1/wSOFghc= sha256:OBvUc+N3q9ty2WOuGRnf4Gq+NEWtlJbAffgyA71B7Ss=
Content-Language: en-US
In-Reply-To: <87zewaslrh.fsf@nightsong.com>