| To: | "Fred J. Tydeman" <tydeman@xxxxxxxxx> |
|---|---|
| Subject: | Re: Bug in XSHd5.1 tgamma |
| From: | Michael Kerrisk <mtk.lists@xxxxxxxxx> |
| Date: | Thu, 24 Jul 2008 20:02:04 +0200 |
| Cc: | Michael Kerrisk <mtk.manpages@xxxxxxxxxxxxxx>, "austin-group-l@xxxxxxxxxxxxx" <austin-group-l@xxxxxxxxxxxxx>, "austin-review-l@xxxxxxxxxxxxx" <austin-review-l@xxxxxxxxxxxxx>, "mtk.manpages@xxxxxxxxx" <mtk.manpages@xxxxxxxxx> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=TbF4mtzXcFRSqJtVhIlU4tntJy3iPGHFWT4vA3Ux2SU=; b=BlFcZFTC3GRpd+vWKLdMntX4wfxulb3CckB2vXh40URLNCH8fu7uveOpatk3Xxug9K tM3okHnhSxMyJSDCc+HsAEwKa/pppTuXwvK82MZgm+KasD8VN39yYGx669U+ykHiKh3T KnIEw2wpgHYI93Ob2zTgeN54AHjLdOJbwVeRw= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=E5Zid5OVFxV0V8JtBhT4EUq5WrTx/jhlxX3cWS2TjnRcsM8ZRqPpwQFbQtg0L02Cae bgg/cVZqnrP4ji3iKRcSCqtb40eDgmTNk7fW7ZsI1bTDGJE6pBRh3GKwNoxvruHm2Xwz AX3ffeAO3QIn+qkWnIWJMLzs7uN2W/mS5YpLY= |
| References: | <200807241632.m6OGWHQ14027@xxxxxx> |
Fred J. Tydeman wrote: The existing text C99 doesn't cover the point, because underflow is not a matter of -large. As we pass through a certain continuous range of negative reals, we cycle through: finite, representable result; underflow; finite, representable result; underflow; etc. The underflow and overflow conditions here are not simply a matter of the linear magnitude of x. Would it not be better to describe the underflow exception using text which speaks in terms of the magnitude of the result, not the magnitude of x?On Thu, 24 Jul 2008 17:52:42 +0200, Michael Kerrisk wrote:Close, but wrong. Look at the wording in exp() for underflow.Point taken. But given that C99 doesn't specify the exception,I believe that C99 covers both overflow (for +large, +small, -small, -large) and underflow (-large). However, based upon the comments in this group, it could be made clearer (I am willing to get C99/C1x changed if someone provides the better wording). I'll try to spend some time on this tomorrow. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Bug in XSHd5.1 tgamma, Fred J. Tydeman |
|---|---|
| Next by Date: | Defect in XSH pthread_sigmask, Geoff Clare |
| Previous by Thread: | Re: Bug in XSHd5.1 tgamma, Fred J. Tydeman |
| Next by Thread: | Bug in XSHd5.1 sigaction(), tydeman |
| Indexes: | [Date] [Thread] [All Lists] |