View Issue Details

IDProjectCategoryView StatusLast Update
00003571003.1(2008)/Issue 7Base Definitions and Headerspublic2013-04-16 13:06
Reportereblake Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameEric Blake
OrganizationRed Hat
User Referenceebb.tgmath
Sectiontgmath.h
Page Number418
Line Number14035
Interp Status---
Final Accepted TextSee 0000357:0000641
Summary0000357: typo in tgmath table
DescriptionThe type-generic nexttoward(float,long double) results in the execution of
nexttowardl, not nexttowardf.
Desired ActionAt line 14035 [XBD <tgmath.h>], change nexttowardf to nexttowardl.
Tagstc1-2008

Activities

eblake

2010-12-03 16:53

manager   bugnote:0000631

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.

eblake

2010-12-03 17:01

manager   bugnote:0000632

However, there _is_ still an editorial error in <tgmath.h>:

At line 13996-13997, scalbln() should sort before scalbn().

nick

2010-12-16 17:08

manager   bugnote:0000641

Last edited: 2011-01-06 23:47

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.

Issue History

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