Skip to content

Commit

Permalink
Remove erroneous statements about negative zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Bowler authored and Joseph Myers committed Feb 19, 2012
1 parent 02c4bba commit cd837b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-02-19 Nick Bowler <nbowler@draconx.ca>

[BZ #11322]
* manual/arith.texi: Remove statements about negative zero
behaving identically to zero.

2012-02-18 Joseph Myers <joseph@codesourcery.com>

[BZ #5993]
Expand Down
6 changes: 3 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Version 2.16
* The following bugs are resolved with this release:

174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 5993, 6884, 6907, 9902,
10140, 10210, 11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529,
13530, 13531, 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559,
13583, 13618
10140, 10210, 11322, 11494, 12047, 13058, 13525, 13526, 13527, 13528,
13529, 13530, 13531, 13532, 13533, 13547, 13551, 13552, 13553, 13555,
13559, 13583, 13618

* ISO C11 support:

Expand Down
8 changes: 2 additions & 6 deletions manual/arith.texi
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,7 @@ such as by defining @code{_GNU_SOURCE}, and then you must include
@w{IEEE 754} also allows for another unusual value: negative zero. This
value is produced when you divide a positive number by negative
infinity, or when a negative result is smaller than the limits of
representation. Negative zero behaves identically to zero in all
calculations, unless you explicitly test the sign bit with
@code{signbit} or @code{copysign}.
representation.

@node Status bit operations
@subsection Examining the FPU status word
Expand Down Expand Up @@ -926,9 +924,7 @@ If a result is too small to be represented as a denormalized number, it
is rounded to zero. However, the sign of the result is preserved; if
the calculation was negative, the result is @dfn{negative zero}.
Negative zero can also result from some operations on infinity, such as
@math{4/-@infinity{}}. Negative zero behaves identically to zero except
when the @code{copysign} or @code{signbit} functions are used to check
the sign bit directly.
@math{4/-@infinity{}}.

At any time one of the above four rounding modes is selected. You can
find out which one with this function:
Expand Down

0 comments on commit cd837b0

Please sign in to comment.