Submitter:CFP group
Submission Date: 2020-09-01
Document: WG14 N2564
Title: N2564: Range errors and math functions
Reference Documents:N2506
Summary
At the August 2020 virtual WG14 meeting, N2506 was voted into C2x, except of fmod(), remainder(), and fdim(). The committee asked me to make a document of just what was accepted. Here it is.
C2x changes:
Change 7.12.1#5
... overflows if the magnitude ...to:
... overflows if the magnitude (absolute value) ...
Change 7.12.1#6
... underflows if the magnitude ...to:
... underflows if the magnitude (absolute value) ...
Add to 7.12.4.2#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.4.3#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.4.4#2
A range error occurs if x is positive and nonzero y/x is too close to zero.
Add to 7.12.4.6#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.4.7#2
A range error occurs if nonzero x is too close to zero.
Change 7.12.4.9#2
A range error occurs if the magnitude of nonzero x is too small.to:
A range error occurs ifthe magnitude ofnonzero x is toosmallclose to zero.
Change 7.12.4.10#2
A range error occurs if the magnitude of nonzero x is too small.to:
A range error occurs ifthe magnitude ofnonzero x is toosmallclose to zero.
Change 7.12.4.11#2
A range error occurs if x is positive and the magnitude of nonzero y/x is too small.to:
A range error occurs if x is positive andthe magnitude ofnonzero y/x is toosmallclose to zero.
Add to 7.12.4.13#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.4.14#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.5.2#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.5.3#2
A range error occurs if nonzero x is too close to zero.
Change 7.12.5.4#2 from
A range error occurs if the magnitude of x is too large.
to
A range error occurs if the magnitude of finite x is too large.
Change 7.12.5.5#2 from
A range error occurs if the magnitude of x is too large.
to
A range error occurs if the magnitude of finite x is too large or if nonzero x is too close to zero.
Add to 7.12.5.6#2
A range error occurs if nonzero x is too close to zero.
Change 7.12.6.1#2 from
A range error occurs if the magnitude of x is too large.
to
A range error occurs if the magnitude of finite x is too large.
Change 7.12.6.2#2 from
A range error occurs if the magnitude of x is too large.
to
A range error occurs if the magnitude of finite x is too large.
Change 7.12.6.3#2 from
A range error occurs if finite x is too large or if the magnitude of nonzero x is too small.
to
A range error occurs if positive finite x is too large or ifthe magnitude ofnonzero x is toosmallclose to zero.
Change 7.12.6.4#2 from
A range error occurs if the magnitude of x is too large.
to
A range error occurs if the magnitude of finite x is too large.
Change 7.12.6.5#2 from
A range error occurs if the magnitude of x is too large or if the magnitude of nonzero x is too small.
to
A range error occurs ifthe magnitude ofpositive finite x is too large or ifthe magnitude ofnonzero x is toosmallclose to zero.
Change 7.12.6.6#2 from
A range error occurs if positive x is too large.252)
to
A range error occurs if positive finite x is too large or if nonzero x is too close to zero.252)
Change 7.12.6.9#2 from
A range error may occur.
to
A range errormay occuroccurs for some finite x, depending on p.
Change 7.12.6.13#2
A range error occurs if the magnitude of nonzero x is too small.to:
A range error occurs ifthe magnitudenonzero x is toosmallclose to zero.
Add to 7.12.6.14#2
A range error occurs if nonzero x is too close to zero.
Add to 7.12.6.16#2
A range error occurs if nonzero x is too close to zero.
Change 7.12.6.19#2 from
A range error may occur.
to
A range errormay occuroccurs for some finite x, depending on n.
Change 7.12.7.2#2 from
A range error may occur if n is too large, depending on x.
to
A range errormay occuroccurs if positive finite xnis too large or if x is too near but not equal to -1, depending on nx.
Change 7.12.7.4#2 from
A range error may occur.
to
A range errormay occuroccurs for some finite arguments.
Change 7.12.7.5#2 from
A range error may occur.
to
A range errormay occurocurs if the magnitude of nonzero finite x is too large or too near zero, depending on y.
Change 7.12.7.6#2 from
A range error may occur.
to
A range errormay occuroccurs if the magnitude of nonzero finite x is too large or too near zero, depending on n.
Change 7.12.7.7#2 from
A range error may occur.
to
A range errormay occuroccurs if positive nonzero finite x is too large or too near zero, depending on y.
Change 7.12.7.8#2 from
A range error may occur if n is -1.
to
A range errormay occuroccurs if n is -1 and the magnitude of nonzero finite x is too large or too near zero .
Add to 7.12.8.1#2
A range error occurs if nonzero x is too close to zero.
Change 7.12.8.2#2
A range error occurs if positive x is too large.
to:
A range error occurs if positive finite x is too large.
Change 7.12.8.3#2
A range error occurs if positive x is too large.
to:
A range error occurs if positive finite x is too large.
Change 7.12.8.4#2
A range error occurs if the magnitude of x is too large and may occur if the magnitude of x is too small.
to:
A range error occurs for some negative finite x, and ifthe magnitude ofpositive finite x is too large orand may occur if the magnitude ofnonzero x is toosmallclose to zero.
Change 7.12.13.1#2
A range error may occur.
to:
A range errormay occuroccurs for some finite arguments.