File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3802
3802
begin with 1, and are multiplied by successive integral power of 2,
3803
3803
except perhaps for the bit with the highest position. (Adapted from the
3804
3804
\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.
3807
3807
\exitexample
3808
3808
3809
3809
\pnum
Original file line number Diff line number Diff line change 1984
1984
for an enumeration where $ e_\mathit {min}$ is the smallest enumerator and
1985
1985
$ e_\mathit {max}$ is the largest, the values of the enumeration are the
1986
1986
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
1988
1988
or sign-magnitude representation. $ b_{max}$ is the smallest value
1989
1989
greater than or equal to $ max(|e_{min}| - K, |e_{max}|)$ and equal to
1990
1990
$ 2 ^M-1 $ , where $ M$ is a non-negative integer. $ b_{min}$ is zero if
Original file line number Diff line number Diff line change 2527
2527
\indextext {\idxcode {+}|see{operator, unary~plus}}%
2528
2528
\indextext {operator!logical negation}%
2529
2529
\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}}%
2532
2532
\indextext {operator!increment}%
2533
2533
\indextext {operator!decrement}%
2534
2534
%
2655
2655
The type of the result is \tcode {bool}.
2656
2656
2657
2657
\pnum
2658
- \indextext {operator!one's ~complement}%
2658
+ \indextext {operator!ones' ~complement}%
2659
2659
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
2661
2661
performed. The type of the result is the type of the promoted operand.
2662
2662
There is an ambiguity
2663
2663
in the grammar when \tcode {\~ {}} is followed by
You can’t perform that action at this time.
0 commit comments