File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4653
4653
of an unsigned quantity is computed by subtracting its value from $ 2 ^n$ ,
4654
4654
where $ n$ is the number of bits in the promoted operand. The type of the
4655
4655
result is the type of the promoted operand.
4656
+ \begin {note }
4657
+ The result is the two's complement of the operand
4658
+ (where operand and result are considered as unsigned).
4659
+ \end {note }
4656
4660
4657
4661
\pnum
4658
4662
\indextext {operator!logical negation}%
4674
4678
the coefficient $ \tcode {r}_i$
4675
4679
of the base-2 representation of the result \tcode {r}
4676
4680
is 1 if $ \tcode {x}_i$ is 0, and 0 otherwise.
4681
+ \begin {note }
4682
+ The result is the ones' complement of the operand
4683
+ (where operand and result are considered as unsigned).
4684
+ \end {note }
4677
4685
There is an ambiguity
4678
4686
in the grammar when \tcode {\~ {}} is followed by
4679
4687
a \grammarterm {type-name} or \grammarterm {decltype-specifier}.
You can’t perform that action at this time.
0 commit comments