mirror of
https://github.com/golang/go
synced 2024-11-25 02:57:57 -07:00
what is the name for "&^". let's go with bit clear (and not)
R=rsc DELTA=14 (0 added, 0 deleted, 14 changed) OCL=26159 CL=26206
This commit is contained in:
parent
6f321e28f4
commit
307ec21932
@ -2497,19 +2497,19 @@ to strings; all other arithmetic operators apply to integers only.
|
||||
</p>
|
||||
|
||||
<pre class="grammar">
|
||||
+ sum integers, floats, strings
|
||||
- difference integers, floats
|
||||
* product integers, floats
|
||||
/ quotient integers, floats
|
||||
% remainder integers
|
||||
+ sum integers, floats, strings
|
||||
- difference integers, floats
|
||||
* product integers, floats
|
||||
/ quotient integers, floats
|
||||
% remainder integers
|
||||
|
||||
& bitwise and integers
|
||||
| bitwise or integers
|
||||
^ bitwise xor integers
|
||||
&^ bitwise nand integers
|
||||
& bitwise and integers
|
||||
| bitwise or integers
|
||||
^ bitwise xor integers
|
||||
&^ bit clear (and not) integers
|
||||
|
||||
<< left shift integer << unsigned integer
|
||||
>> right shift integer >> unsigned integer
|
||||
<< left shift integer << unsigned integer
|
||||
>> right shift integer >> unsigned integer
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
@ -3023,7 +3023,7 @@ x = 1
|
||||
*p = f()
|
||||
a[i] = 23
|
||||
k = <-ch
|
||||
i &^= (1<<n)
|
||||
i &^= 1<<n
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user