Deutsch   English   Français   Italiano  
<10356p2$12m7t$1@solani.org>

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

Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: mitchalsup@aol.com (MitchAlsup1)
Newsgroups: comp.arch
Subject: Re: Why I've Dropped In
Date: Sat, 21 Jun 2025 02:51:25 +0000
Organization: Rocksolid Light
Message-ID: <5fda535009b228440ddbe3a2cd6ab0d3@www.novabbs.org>
References: <0c857b8347f07f3a0ca61c403d0a8711@www.novabbs.com> <3a6eba4b534dea030b8349dc39cf9420@www.novabbs.org> <e9abef6b162ffd64be7891afbfb79a99@www.novabbs.com> <102jc8k$25im$1@dont-email.me> <defd47e72f624f949ad1279b41ed0739@www.novabbs.com> <jwv1pre2wpf.fsf-monnier+comp.arch@gnu.org> <efc90a52009bd6664d5a851c70dc25b3@www.novabbs.org> <jwvv7oq1f1m.fsf-monnier+comp.arch@gnu.org> <4f573f3cbfec9f20ed75a0d0fb18005d@www.novabbs.org> <1035321$kqfj$2@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="1374079"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="o5SwNDfMfYu6Mv4wwLiW6e/jbA93UAdzFodw5PEa6eU";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: cb29269328a20fe5719ed6a1c397e21f651bda71
X-Rslight-Site: $2y$10$4AleyKRThngn89nG80nV7.SXVr65QC66L/Nnew73IDyxZJK3xo9Z2

On Sat, 21 Jun 2025 1:48:51 +0000, Waldek Hebisch wrote:

> MitchAlsup1 <mitchalsup@aol.com> wrote:
>> On Fri, 20 Jun 2025 17:48:20 +0000, Stefan Monnier wrote:
>>
>>>> Creating the hidden bit is 2-gates of delay (H,F,D,Q).
>>>
>>> How come it's not free in hardware?
>>> Is it only because of denormalized?
>>
>>     hidden = operand.exponent != 0
>>
>> Which is an 11-input NAND gate. I suspect you could assume it is 1
>> and special case the result, but even special casing the result
>> cannot be less than 1-gate (a multiplexer).
>>
>> You DO end up special casing Infinities and NaNs; anyway.
>>
>>    Special = operand.exponent == 0b11111111111
>>
>> Which is an 11-input AND gate.
>
> But do explicit bit lead to a difference?  IIUC FPU need to
> special cases anyway.  I would guess that a flag normal/special
> could save some time, but once FPU knows that it deals with
> normal numbers hidden bit should be effectively free.

FADD/SUB starts out with an exponent subtract, so you have time to
"invent" the hidden bit at almost zero cost.

FMUL/MAC/DIV/SQRT starts out with a big multiplexer (float,double)
that allows one to invent the hidden bit at near zero cost.

FCMP does not need to "invent" the hidden bit because it is a sign-
magnitude integer compare (with special cases).

So, the cost is between actual zero, and nearly zero if your
circuit designer is worth being on the payroll.