View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000357 | 1003.1(2008)/Issue 7 | Base Definitions and Headers | public | 2010-12-03 16:39 | 2013-04-16 13:06 |
Reporter | eblake | Assigned To | ajosey | ||
Priority | normal | Severity | Editorial | Type | Error |
Status | Closed | Resolution | Accepted As Marked | ||
Name | Eric Blake | ||||
Organization | Red Hat | ||||
User Reference | ebb.tgmath | ||||
Section | tgmath.h | ||||
Page Number | 418 | ||||
Line Number | 14035 | ||||
Interp Status | --- | ||||
Final Accepted Text | See 0000357:0000641 | ||||
Summary | 0000357: typo in tgmath table | ||||
Description | The type-generic nexttoward(float,long double) results in the execution of nexttowardl, not nexttowardf. | ||||
Desired Action | At line 14035 [XBD <tgmath.h>], change nexttowardf to nexttowardl. | ||||
Tags | tc1-2008 |
|
I stand corrected; line 13954 is clear that generic types are only considered for the type that is originally double, but with nexttoward, the second parameter is originally long double, so it is not a generic type, and therefore does not affect which function is invoked. nexttoward(f,ld) is correct as nexttowardf(f,ld), after all. |
|
However, there _is_ still an editorial error in <tgmath.h>: At line 13996-13997, scalbln() should sort before scalbn(). |
|
Correct the sort order described in 0000357:0000632, and add to Application Usage on page 1368, after line 44858: When <tgmath.h> is included, note that the return type of nextafter depends on the generic typing deduced from both arguments, while the return type of nexttoward depends only on the generic typing of the first argument. |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-12-03 16:39 | eblake | New Issue | |
2010-12-03 16:39 | eblake | Status | New => Under Review |
2010-12-03 16:39 | eblake | Assigned To | => ajosey |
2010-12-03 16:39 | eblake | Name | => Eric Blake |
2010-12-03 16:39 | eblake | Organization | => Red Hat |
2010-12-03 16:39 | eblake | User Reference | => ebb.tgmath |
2010-12-03 16:39 | eblake | Section | => tgmath.h |
2010-12-03 16:39 | eblake | Page Number | => 418 |
2010-12-03 16:39 | eblake | Line Number | => 14035 |
2010-12-03 16:39 | eblake | Interp Status | => --- |
2010-12-03 16:53 | eblake | Note Added: 0000631 | |
2010-12-03 17:01 | eblake | Note Added: 0000632 | |
2010-12-16 17:08 | nick | Note Added: 0000641 | |
2010-12-16 17:09 | nick | Final Accepted Text | => See 0000357:0000641 |
2010-12-16 17:09 | nick | Status | Under Review => Resolved |
2010-12-16 17:09 | nick | Resolution | Open => Accepted As Marked |
2010-12-16 17:09 | nick | Tag Attached: tc1-2008 | |
2011-01-06 23:47 | eblake | Note Edited: 0000641 | |
2013-04-16 13:06 | ajosey | Status | Resolved => Closed |