View Issue Details

IDProjectCategoryView StatusLast Update
00014611003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:08
Reportergeoffclare Assigned To 
PrioritynormalSeverityCommentTypeClarification Requested
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectiontgamma()
Page Number2145
Line Number68720
Interp Status---
Final Accepted Text
Summary0001461: tgamma() with negative integer argument
DescriptionThe tgamma() FUTURE DIRECTIONS section says:
It is possible that the error response for a negative integer argument may be changed to a pole error and a return value of ±Inf.

C17 allows a domain error or a pole error (with implementation-defined return value). However, when IEC 60559 Floating-Point is supported, an "invalid" floating-point exception (i.e. a domain error) and NaN return are required. This has not changed in the Dec 2020 C2x draft. So changing POSIX to require a pole error would introduce a conflict with the C standard.

I would suggest that we just change POSIX to match the C standard, i.e. allow either a domain error or a pole error, when IEC 60559 Floating-Point is not supported.
Desired ActionOn page 2145 line 68720 section tgamma(), change:
If x is a negative integer, a [CX]domain[/CX] error may occur and either a NaN (if supported) or an implementation-defined value shall be returned.
to:
If x is a negative integer, either a domain error or a pole error may occur and either a NaN (if supported) or +/-Inf (if supported), respectively, or an implementation-defined value shall be returned.

On page 2146 line 68762 section tgamma(), change:
Pole Error The value of x is zero.
to:
Pole Error The value of x is zero or a negative integer.

On page 2146 line 68781 section tgamma(), change:
It is possible that the error response for a negative integer argument may be changed to a pole error and a return value of ±Inf.
to:
None.

Tagsissue8

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-22 10:40 geoffclare New Issue
2021-03-22 10:40 geoffclare Name => Geoff Clare
2021-03-22 10:40 geoffclare Organization => The Open Group
2021-03-22 10:40 geoffclare Section => tgamma()
2021-03-22 10:40 geoffclare Page Number => 2145
2021-03-22 10:40 geoffclare Line Number => 68720
2021-03-22 10:40 geoffclare Interp Status => ---
2021-11-18 16:36 Don Cragun Status New => Resolved
2021-11-18 16:36 Don Cragun Resolution Open => Accepted
2021-11-18 16:36 Don Cragun Tag Attached: issue8
2021-12-13 15:02 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed