mirror of
https://github.com/golang/go
synced 2024-11-25 01:57:56 -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>
|
</p>
|
||||||
|
|
||||||
<pre class="grammar">
|
<pre class="grammar">
|
||||||
+ sum integers, floats, strings
|
+ sum integers, floats, strings
|
||||||
- difference integers, floats
|
- difference integers, floats
|
||||||
* product integers, floats
|
* product integers, floats
|
||||||
/ quotient integers, floats
|
/ quotient integers, floats
|
||||||
% remainder integers
|
% remainder integers
|
||||||
|
|
||||||
& bitwise and integers
|
& bitwise and integers
|
||||||
| bitwise or integers
|
| bitwise or integers
|
||||||
^ bitwise xor integers
|
^ bitwise xor integers
|
||||||
&^ bitwise nand integers
|
&^ bit clear (and not) integers
|
||||||
|
|
||||||
<< left shift integer << unsigned integer
|
<< left shift integer << unsigned integer
|
||||||
>> right shift integer >> unsigned integer
|
>> right shift integer >> unsigned integer
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -3023,7 +3023,7 @@ x = 1
|
|||||||
*p = f()
|
*p = f()
|
||||||
a[i] = 23
|
a[i] = 23
|
||||||
k = <-ch
|
k = <-ch
|
||||||
i &^= (1<<n)
|
i &^= 1<<n
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user