This is my point: I don't see a great way to encode the first NaN, which
is why I propose not making that a goal. You're not getting the first
NaN in any case even if you try to do so in hardware, since the order of operations is a fragile thing that's hard to control unless you write assembly code, or the most tedious source code imaginable.
Kent Dickey <kegs@provalid.com> schrieb:
This is my point: I don't see a great way to encode the first NaN, which
is why I propose not making that a goal. You're not getting the first
NaN in any case even if you try to do so in hardware, since the order of
operations is a fragile thing that's hard to control unless you write
assembly code, or the most tedious source code imaginable.
Using Fortran, parentheses have to be honored. If you write
A = (B + C) + (D + E)
then B + C and D + E have to be calculated before the total sum.
If you write
A = B + (C + (D + E))
then you prescribe the order completetely.
I can imagine source code that is much more tedious than this :-)
Thomas Koenig wrote:
Kent Dickey <kegs@provalid.com> schrieb:
This is my point: I don't see a great way to encode the first NaN, which >> is why I propose not making that a goal. You're not getting the first
NaN in any case even if you try to do so in hardware, since the order of >> operations is a fragile thing that's hard to control unless you write
assembly code, or the most tedious source code imaginable.
Using Fortran, parentheses have to be honored. If you write
A = (B + C) + (D + E)
then B + C and D + E have to be calculated before the total sum.
If you write
A = B + (C + (D + E))
then you prescribe the order completetely.
I can imagine source code that is much more tedious than this :-)
That doesn't control which variable is assigned to each source operand.
If both operands were Nan's and the two-Nan-rule was "always take src1"
then the choice of which to propagate would still be non-deterministic.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 17:44:13 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
4 files (8,203K bytes) |
| Messages: | 184,414 |
| Posted today: | 1 |