Article View: comp.lang.forth
Article #96Re: FCONSTANT specification
From: Krishna Myneni
Date: Fri, 16 Oct 2026 16:02
Date: Fri, 16 Oct 2026 16:02
44 lines
3225 bytes
3225 bytes
On 10/16/26 10:36, marcel hendrix wrote: > On 10/16/2026 5:58 AM, Krishna Myneni wrote: > > > extended precision (p = 64 bits) > > double double precision (p = 106 bits) > > quad precision (p = 113 bits) > > double extended precision (p = 128 bits) > > double quad precision (p = 226 bits) > > > > Then M = 70, and H >= 73 significant digits. > > Which implies H >= 83 for quad double extended precision, > meaning the available QD* in that library is not sufficient. > Although only QDNEGATE , qd=10 QD* , qd=10 QD/ , and QDF+ are needed, > one can't get by with a bit shift routine and a simple QQDF+, as +/-INF, > NAN and subnormals must be handled. > > Or give up in disgust and link to an external library. > > Either that or go for II.2. > > -marcel Yes, I expect QD* which I assume is quad double mulitply is probably not sufficient to handle quad extended requirements. One point I forgot to mention is that the Forth standard for REPRESENT requires rounding to nearest, in which case H_min = M (not M+3). There's no way I can see to avoid using big number arithmetic for the quad extended precision case. It's not hopeless. We have big number arithmetic library code in Forth with which to learn how to deal with just about any case. The learning curve is there, of course. To handle +/-INF and NAN, isn't it sufficient to examine the bit pattern for the leading extended precision number in the quad extended precision set i.e. no arithmetic should be needed to handle +/-INF and NAN? I'm not sure if subnormals will be more difficult to handle than normal numbers -- their precision is always less than or equal to normal numbers. -- KM
Technical Details
Message-ID:
<11athqh$3e3iv$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-mailReferences:
<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>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: Krishna Myneni <krishna.myneni@ccreweb.org> Newsgroups: comp.lang.forth Subject: Re: FCONSTANT specification Date: Fri, 16 Oct 2026 11:02:25 -0500 Organization: A noiseless patient Spider Lines: 44 Message-ID: <11athqh$3e3iv$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 16 Oct 2026 16:02:28 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3608159"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Kt+59Rsw/z1PNBjKY4LOM"; posting-host="6424a14b30c7c4c7012a370c8d7efbd9" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:/Ax8XyTNL0dP6xBVwz6uYndLMrM= sha256:0j/BIG0H2QbHc7erPtKvGxasI+tE8ltdsJVfyeEOHK4= sha1:08MxLuQyHFsE7c0vMxqI/o74Bv4= sha256:A2rmRVwVrLxgkUpBSpUa5CMNjK4LtmHw6l/S/K2Jj4U= Content-Language: en-US In-Reply-To: <11atg9c$1t6lk$1@dont-email.me>