Debian Codegraph @

t/test-mails/josey-nofold

raw
1 Received: (qmail 1679 invoked by uid 503); 13 Nov 2002 10:10:49 -0000
2 Resent-Date: 13 Nov 2002 10:10:49 -0000
3 Date: Wed, 13 Nov 2002 10:06:51 GMT
4 From: Andrew Josey <[email protected]>
5 Message-Id: <[email protected]>
6 In-Reply-To: Joanna Farley's message as of Nov 13, 9:56am.
7 X-Mailer: Z-Mail (5.0.0 30July97)
8 To: [email protected]
9 Subject: Re: Defect in XBD lround
10 MIME-Version: 1.0
11 Resent-Message-ID: <gZGK1B.A.uY.iUi09@mailman>
12 Resent-To: [email protected]
13 Resent-From: [email protected]
14 X-Mailing-List: austin-group-l:archive/latest/4823
15 X-Loop: [email protected]
16 Precedence: list
17 Resent-Sender: [email protected]
18 Content-Type: text/plain; charset=us-ascii
19
20 Joanna, All
21
22 Thanks. I got the following response from Fred Tydeman.
23
24 C99 Defect Report (DR) 240 covers this. The main body of C99
25 (7.12.9.7) says range error, while Annex F (F.9.6.7 and F.9.6.5)
26 says "invalid" (domain error). The result was to change 7.12.9.7
27 to allow for either range or domain error. The preferred error
28 is domain error (so as match Annex F). So, no need to change XBD.
29
30 regards
31 Andrew
32
33 On Nov 13, 9:56am in "Re: Defect in XBD lr", Joanna Farley wrote:
34 > Sun's expert in this area after some discussions with a colleague
35 > outside of Sun concluded that for lround, to align with both C99 and SUS
36 > changes of the following form were necessary:
37 >
38 > + If x is +/-Inf/NaN, a domain error occurs, and
39 > + errno is set to EDOM in MATH_ERRNO mode;
40 > + the invalid exception is raised in MATH_ERREXCEPT mode.
41 > [to align with C99 Annex F.4]
42 >
43 > + If x is too large to be represented as a long, a *range* error
44 > may occur, and
45 > + errno *may be* set to ERANGE in MATH_ERRNO mode;
46 > [to align with C99 7.12.9.7]
47 > + the invalid exception *is* raised in MATH_ERREXCEPT mode.
48 > [to align with C99 Annex F.4]
49 >
50 > They believe it is a bit awkward to have errno set to ERANGE in
51 > MATH_ERRNO mode yet the invalid exception raised in MAH_ERREXCEPT mode,
52 > but that just reflects an imperfect mapping of the C notion of errno to
53 > the IEEE 754 notion of data conversion.
54 >
55 > I'll work with our expert to draft text refecting the above to suggest
56 > replacement text for lines 23678-23684 on lround page 721 of XSH6.
57 >
58 > Thanks
59 >
60 > Joanna
61 >
62 >
63 > Andrew Josey wrote:
64 > >
65 > > The text referred to is MX shaded and part of the ISO 60559 floating
66 > > point option. I do not think changing the Domain Error to a Range Error
67 > > is the fix or at least not the fix for the NaN and +-Inf cases. ISO C
68 > > 99 describes the range error case if the magnitude of x is too large as a
69 > > may fail. I'll ask Fred T for his thoughts on this one...
70 > > regards
71 > > Andrew
72 > >
73 > > On Nov 12, 9:37am in "Defect in XBD lround", [email protected] wrote:
74 > > > Defect report from : Erwin Unruh , Fujitsu Siemens Computers
75 > > >
76 > > > (Please direct followup comments direct to [email protected])
77 > > >
78 > > > @ page 0 line 0 section lround objection {0}
79 > > >
80 > > > Problem:
81 > > >
82 > > > Defect code : 1. Error
83 > > >
84 > > > The function lround is described in http://www.opengroup.org/onlinepubs/007904975/functions/lround.html
85 > > > On Error it is specified that errno has to be set to EDOM. However, the C99 standard ISO/IEC 9899:1999 (E) specifies this as a range error, which would result in a value of ERANGE. So an implementation could not be conformant to both these standards.
86 > > >
87 > > > Action:
88 > > >
89 > > > Change the value of errno to ERANGE, if the result is not represantable. More specific: In the description of the function, replace all occurences of "domain error" with "range error" and replace "EDOM" with "ERANGE"
90 > > >-- End of excerpt from [email protected]
91 > >
92
93 -----
94 Andrew Josey The Open Group
95 Austin Group Chair Apex Plaza,Forbury Road,
96 Email: [email protected] Reading,Berks.RG1 1AX,England
97 Tel: +44 118 9508311 ext 2250 Fax: +44 118 9500110