[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bignum branch
From: |
Achim Gratz |
Subject: |
Re: bignum branch |
Date: |
Sat, 04 Aug 2018 12:43:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Tom Tromey writes:
> Paul> min and max propagate any NaNs they find.
>
> This part I don't understand, since my mental mode of min/max is that
> they are iteratively applying < or >
The point of having NaN at all is to set aside a tiny bit of the symbol
space for floating point numbers to encode certain error conditions and
propagate them in-band. Otherwise they'd need to be signalled via side
channels like traps and exceptions, which usually significantly slow
down the error-free cases also or complicate the code even further.
Getting an NaN indicates that your computation has left the domain it
was defined in. So no matter what you do, after you get an NaN this
indication must be preserved, hence all results must propagate NaN until
you get to the point where you do error handling.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
- Re: bignum branch, (continued)
- Re: bignum branch, Tom Tromey, 2018/08/03
- Re: bignum branch, Paul Eggert, 2018/08/03
- Re: bignum branch, Tom Tromey, 2018/08/03
- Re: bignum branch, Paul Eggert, 2018/08/03
- Re: bignum branch, Eli Zaretskii, 2018/08/04
- Re: bignum branch, Achim Gratz, 2018/08/04
- Re: bignum branch, Eli Zaretskii, 2018/08/04
- Re: bignum branch,
Achim Gratz <=
- Re: bignum branch, Tom Tromey, 2018/08/04
- Re: bignum branch, Achim Gratz, 2018/08/04
- Re: bignum branch, Eli Zaretskii, 2018/08/04
- Re: bignum branch, Andy Moreton, 2018/08/04
- Re: bignum branch, Tom Tromey, 2018/08/04
- Re: bignum branch, Robert Pluim, 2018/08/06
- Re: bignum branch, Tom Tromey, 2018/08/06
- Re: bignum branch, Andy Moreton, 2018/08/07
- Re: bignum branch, Tom Tromey, 2018/08/07
- Re: bignum branch, Tom Tromey, 2018/08/04