Commit 307ec219 authored by Rob Pike's avatar Rob Pike

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
parent 6f321e28
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment