Skip to content

Commit 553cfb0

Browse files
committed
Merge pull request #619 from k-satoda/ones-twos-complement
Uniform "ones' complement" and "two's complement", per the C standard and Knuth.
2 parents 707ca6f + 66f77b6 commit 553cfb0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/basic.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3802,8 +3802,8 @@
38023802
begin with 1, and are multiplied by successive integral power of 2,
38033803
except perhaps for the bit with the highest position. (Adapted from the
38043804
\doccite{American National Dictionary for Information Processing Systems}.)}
3805-
\enterexample this International Standard permits 2's complement, 1's
3806-
complement and signed magnitude representations for integral types.
3805+
\enterexample this International Standard permits two's complement,
3806+
ones' complement and signed magnitude representations for integral types.
38073807
\exitexample
38083808

38093809
\pnum

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@
19841984
for an enumeration where $e_\mathit{min}$ is the smallest enumerator and
19851985
$e_\mathit{max}$ is the largest, the values of the enumeration are the
19861986
values in the range $b_{min}$ to $b_{max}$, defined as follows: Let $K$
1987-
be 1 for a two's complement representation and 0 for a one's complement
1987+
be 1 for a two's complement representation and 0 for a ones' complement
19881988
or sign-magnitude representation. $b_{max}$ is the smallest value
19891989
greater than or equal to $max(|e_{min}| - K, |e_{max}|)$ and equal to
19901990
$2^M-1$, where $M$ is a non-negative integer. $b_{min}$ is zero if

source/expressions.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,8 +2527,8 @@
25272527
\indextext{\idxcode{+}|see{operator, unary~plus}}%
25282528
\indextext{operator!logical negation}%
25292529
\indextext{\idxcode{"!}|see{operator, logical~negation}}%
2530-
\indextext{operator!one's~complement}%
2531-
\indextext{~@\tcode{\tilde}|see{operator, one's~complement}}%
2530+
\indextext{operator!ones'~complement}%
2531+
\indextext{~@\tcode{\tilde}|see{operator, ones'~complement}}%
25322532
\indextext{operator!increment}%
25332533
\indextext{operator!decrement}%
25342534
%
@@ -2655,9 +2655,9 @@
26552655
The type of the result is \tcode{bool}.
26562656

26572657
\pnum
2658-
\indextext{operator!one's~complement}%
2658+
\indextext{operator!ones'~complement}%
26592659
The operand of \tcode{\~{}} shall have integral or unscoped enumeration type; the
2660-
result is the one's complement of its operand. Integral promotions are
2660+
result is the ones' complement of its operand. Integral promotions are
26612661
performed. The type of the result is the type of the promoted operand.
26622662
There is an ambiguity
26632663
in the grammar when \tcode{\~{}} is followed by

0 commit comments

Comments
 (0)