1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:24:46 -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:
Rob Pike 2009-03-12 15:53:56 -07:00
parent 6f321e28f4
commit 307ec21932

View File

@ -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
&amp; bitwise and integers
| bitwise or integers
^ bitwise xor integers
&amp;^ bitwise nand integers
&amp; bitwise and integers
| bitwise or integers
^ bitwise xor integers
&amp;^ 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&lt;&lt;n)
i &amp;^= 1&lt;&lt;n
</pre>
<p>