Thread Links | Date Links | ||||
---|---|---|---|---|---|
Thread Prev | Thread Next | Thread Index | Date Prev | Date Next | Date Index |
AN> The real question is whether a (hardware or software) implementation
AN> that produces +-DirectedInf in place of Inf whenever an operation with
AN> directed rounding to +-Inf overflows is still 754 compatible.
I believe it is not 754 compatible.
The other question I think is important is how that +-DirectedInf would be represented. What bit pattern would be used? In BFP (Binary Floating Point), every bit pattern already as a meaning. That's the reason for my previous email listing possible implementation approaches.
AN> If it is, everything is fine, and we can recommend implementors to
AN> create and prefer this version.
AN> Initially, this may be done in less efficient ways; ultimately it will
AN> be done by all implementations, and as efficiently as the current
AN> implementations, since hardly anything but applications for rigorous
AN> computations uses directed rounding anyway.
Unfortunately 754 already specifies the meaning of rounding modes, and there are real uses of their current meanings (and not rare, since some of the uses are hidden inside library functions). They could not just be redefined, unless there was a new mode. The more likely possibility would be to have new rounding modes instead of redefining the existing ones.
The representation of DirectedInf would still be an issue.
AN> If it is not, then redefining operations using either DirectedInf
AN> or Overflow will violate 754, and hence must be simulated on top
AN> of a 754 compatible architecture. In this case, is very unlikely
AN> that either of these gives an advantage over a direct simulation
AN> of the exceptional cases that arise in the treatment of unbounded
AN> (and empty) intervals.
It is not. Neither is Overflow, which is why I described it originally as wishful thinking. Sometimes wishes come true, according to the good witch in Oz, if you want them to enough and do the right things. So we should be considering whether and how a future 754 standard might be able to be changed, what we would want it changed to, and how to sell that (preferably also for the benefit of non-interval users). The first step is what we are doing now - discussing what we would want it changed to.
- Ian McIntosh IBM Canada Lab Compiler Back End Support and Development
Arnold Neumaier ---09/29/2010 02:59:47 PM---Ian McIntosh wrote: >
![]() From: | ![]() Arnold Neumaier <Arnold.Neumaier@xxxxxxxxxxxx> |
![]() To: | ![]() Ian McIntosh/Toronto/IBM@IBMCA |
![]() Date: | ![]() 09/29/2010 02:59 PM |
![]() Subject: | ![]() Re: Overflow and Inf |