Deutsch   English   Français   Italiano  
<0f7b4deb1761f4c485d1dc3b21eb7cb3@www.novabbs.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: mitchalsup@aol.com (MitchAlsup1)
Newsgroups: comp.arch
Subject: Re: Continuations
Date: Wed, 17 Jul 2024 16:17:22 +0000
Organization: Rocksolid Light
Message-ID: <0f7b4deb1761f4c485d1dc3b21eb7cb3@www.novabbs.org>
References: <v6tbki$3g9rg$1@dont-email.me> <47689j5gbdg2runh3t7oq2thodmfkalno6@4ax.com> <v71vqu$gomv$9@dont-email.me> <116d9j5651mtjmq4bkjaheuf0pgpu6p0m8@4ax.com> <f8c6c5b5863ecfc1ad45bb415f0d2b49@www.novabbs.org> <7u7e9j5dthm94vb2vdsugngjf1cafhu2i4@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="3616760"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="65wTazMNTleAJDh/pRqmKE7ADni/0wesT78+pyiDW8A";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8
X-Rslight-Site: $2y$10$gMiEzrt6fiyr66eiebC22.1u4G9cGQm/q/.3Qhq5q9jPBSJlprKXu
Bytes: 3263
Lines: 58

On Wed, 17 Jul 2024 1:41:12 +0000, John Savard wrote:

> On Tue, 16 Jul 2024 20:51:17 +0000, mitchalsup@aol.com (MitchAlsup1)
> wrote:
>
>>I think that history shows that those string facilities were, at best,
>>overkill. None of the RISC machines had any of that and were faster
>>and at least as general purpose as 360.
>>
>>Especially the COBOL stuff like EDIT and EDIT-and-MARK.
>
> I will agree with that; the 68000 and the x86 don't have those things
> either.
>
> Even if my personal inclination has been to include them too.
>
>>On the other hand, I am advocating that some Elementary Functions be
>>raised to first class citizens of ISA so that SIM() is 20 cycles instead
>>of 150 cycles. Why, because today, we understand enough about the cal-
>>culations, polynomials, error sources, to build in HW things that are
>>just as accurate as SW can build and nearly 7×-10× faster.
>
> I thought this was already the case; the 8087 had transcendental
> functions, and so did the 486 DX and from that onwards, and this was
> also the case with the 68881 and 68882.
>
> Of course, even if they're citizens of the ISA, they could be
> second-class citizens, whatever the definition of that might be.

While they were "in" the ISAs, they would take thousands of cycles
while FP would only take hundreds of cycles.

What I am talking about is to improve their performance until a
sin() takes about the same number of cycles of FDIV, not 10× more.
>
> Here, my personal inclination is to simply include the raw CORDIC
> calculation as an instruction, with bounds checking, special cases,
> and any fancy stuff in software. On the grounds that some things are
> too complicated for a classic old-style ISA.

This is a tradeoff in size versus cycles. I choose to stop when
sin() was as fast as FDIV.
>
> That, too, is of course a bad decision from a practical perspective.

Imagine a situation where::

     s = sin(x);
     c = cos(x);

is faster and more accurate than:

     s = sin(x);
     c = sqrt(1-s^2);

!!!
{{ignoring the fact that cos() can be negative where sqrt() cannot.}}
>
> John Savard