Re: Cost of handling misaligned access

Liste des GroupesRevenir à c arch 
Sujet : Re: Cost of handling misaligned access
De : mitchalsup (at) *nospam* aol.com (MitchAlsup1)
Groupes : comp.arch
Date : 20. Feb 2025, 04:02:56
Autres entêtes
Organisation : Rocksolid Light
Message-ID : <2dc33514bc664e667173b132601e6ce0@www.novabbs.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Rocksolid Light
On Wed, 19 Feb 2025 22:42:04 +0000, BGB wrote:

On 2/19/2025 11:31 AM, MitchAlsup1 wrote:
On Wed, 19 Feb 2025 16:35:41 +0000, Terje Mathisen wrote:
>
------------------
sign+ULP+Gard+sticky is all you ever need for any rounding mode
IEEE or beyond.
>
That's what I believed all through the 2019 standards process and up to
a month or two ago:
>
In reality, the "NearestOrEven" rounding rule has an exception if/when
you need to round the largest possible fp number, with guard=1 and
sticky=0:
>
I.e. exactly halfway to the next possible value (which would be Inf)
>
In just this particular case, the OrEven part is skipped in favor of not
rounding up, so leaving a maximum/odd mantissa.
>
In the same case but sticky=1 we do round up to Inf.
>
This unfortunately means that the rounding circuit needs to be combined
with an exp+mant==0b111...111 input. :-(
>
You should rename that mode as "Round but stay finite"
>
>
So, does it overflow?...
Based on how IEEE 754 wo9rked throughout its history::
If the calculation overflows without the need for rounding;
yes, it overflows. It is just that rounding all by itself does
not overflow that is different.
----------------
>
Admittedly part of why I have such mixed feelings on full
compare-and-branch:
   Pro: It can offer a performance advantage (in terms of per-clock);
   Con: Branch is now beholden to the latency of a Subtract.
     Con: it can't compare to a constant
     Con: it can't compare floating point
----------------

Where, detecting all zeroes is at least cheaper than a subtract. But,
detecting all zeroes still isn't free (for 64b, ~ 10 LUTs and 3 LUTs
delay).
1 gate   4-inputs inverted
2 gates 16-inputs true
3-gates 64-inputs inverted

Date Sujet#  Auteur
3 Feb 25 * Re: Cost of handling misaligned access106Anton Ertl
3 Feb 25 +- Re: Cost of handling misaligned access9BGB
23 Apr 26 +- 
4 Feb 25 +* Re: Cost of handling misaligned access40Anton Ertl
5 Feb 25 i`* Re: Cost of handling misaligned access39Terje Mathisen
5 Feb 25 i +* Re: Cost of handling misaligned access4Anton Ertl
5 Feb 25 i i+* Re: Cost of handling misaligned access2Terje Mathisen
6 Feb 25 i ii`- Re: Cost of handling misaligned access1Anton Ertl
6 Feb 25 i i`- Re: Cost of handling misaligned access1Anton Ertl
5 Feb 25 i `* Re: Cost of handling misaligned access34Michael S
6 Feb 25 i  +* Re: Cost of handling misaligned access32Anton Ertl
6 Feb 25 i  i`* Re: Cost of handling misaligned access31Michael S
6 Feb 25 i  i +* Re: Cost of handling misaligned access2Anton Ertl
6 Feb 25 i  i i`- Re: Cost of handling misaligned access1Michael S
6 Feb 25 i  i `* Re: Cost of handling misaligned access28Terje Mathisen
6 Feb 25 i  i  `* Re: Cost of handling misaligned access27Terje Mathisen
6 Feb 25 i  i   `* Re: Cost of handling misaligned access26Michael S
6 Feb 25 i  i    `* Re: Cost of handling misaligned access25Terje Mathisen
6 Feb 25 i  i     +* Re: Cost of handling misaligned access19Michael S
7 Feb 25 i  i     i`* Re: Cost of handling misaligned access18Terje Mathisen
7 Feb 25 i  i     i `* Re: Cost of handling misaligned access17Michael S
7 Feb 25 i  i     i  `* Re: Cost of handling misaligned access16Terje Mathisen
7 Feb 25 i  i     i   `* Re: Cost of handling misaligned access15Michael S
7 Feb 25 i  i     i    +- Re: Cost of handling misaligned access1Terje Mathisen
7 Feb 25 i  i     i    +* Re: Cost of handling misaligned access3MitchAlsup1
8 Feb 25 i  i     i    i+- Re: Cost of handling misaligned access1Terje Mathisen
8 Feb 25 i  i     i    i`- Re: Cost of handling misaligned access1Michael S
8 Feb 25 i  i     i    `* Re: Cost of handling misaligned access10Anton Ertl
8 Feb 25 i  i     i     +- Re: Cost of handling misaligned access1Terje Mathisen
8 Feb 25 i  i     i     +* Re: Cost of handling misaligned access6Michael S
8 Feb 25 i  i     i     i`* Re: Cost of handling misaligned access5Anton Ertl
8 Feb 25 i  i     i     i +- Re: Cost of handling misaligned access1Michael S
9 Feb 25 i  i     i     i +* Re: Cost of handling misaligned access2Michael S
11 Feb 25 i  i     i     i i`- Re: Cost of handling misaligned access1Michael S
9 Feb 25 i  i     i     i `- Re: Cost of handling misaligned access1Michael S
9 Feb 25 i  i     i     +- Re: Cost of handling misaligned access1Michael S
10 Feb 25 i  i     i     `- Re: Cost of handling misaligned access1Michael S
7 Feb 25 i  i     `* Re: Cost of handling misaligned access5BGB
7 Feb 25 i  i      `* Re: Cost of handling misaligned access4MitchAlsup1
7 Feb 25 i  i       `* Re: Cost of handling misaligned access3BGB
8 Feb 25 i  i        `* Re: Cost of handling misaligned access2Anssi Saari
8 Feb 25 i  i         `- Re: Cost of handling misaligned access1BGB
6 Feb 25 i  `- Re: Cost of handling misaligned access1Terje Mathisen
6 Feb 25 `* Re: Cost of handling misaligned access5Waldek Hebisch
6 Feb 25  +* Re: Cost of handling misaligned access3Anton Ertl
6 Feb 25  i`* Re: Cost of handling misaligned access2Waldek Hebisch
6 Feb 25  i `- Re: Cost of handling misaligned access1Anton Ertl
6 Feb 25  `- Re: Cost of handling misaligned access1Terje Mathisen

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal