IEEE 754:下溢:是否需要提高不精确标志?
IEEE 754: Underflow: is inexact flag required to be raised?
IEEE 754-2008,7.5 下溢:
The underflow exception shall be signaled ...
... the underflow flag shall be raised and the inexact (see 7.6) exception shall be signaled.
这里我们看到:
- 需要引发下溢标志并且需要发出下溢异常信号
- 需要发出不准确的标志
简单的问题:是否需要提出不准确的标志?
问题原因:据我了解:flag is raised != exception is signaled。对吗?
是的。
7.6 不准确(添加了强调):
When all of these exceptions are handled by default, the inexact flag is always raised when either the overflow or underflow flag is raised.
IEEE 754-2008,7.5 下溢:
The underflow exception shall be signaled ...
... the underflow flag shall be raised and the inexact (see 7.6) exception shall be signaled.
这里我们看到:
- 需要引发下溢标志并且需要发出下溢异常信号
- 需要发出不准确的标志
简单的问题:是否需要提出不准确的标志?
问题原因:据我了解:flag is raised != exception is signaled。对吗?
是的。
7.6 不准确(添加了强调):
When all of these exceptions are handled by default, the inexact flag is always raised when either the overflow or underflow flag is raised.